[PATCH 21/45] block: refactor blkdev_get
Tejun Heo
tj at kernel.org
Tue Nov 24 13:03:36 EST 2020
On Tue, Nov 24, 2020 at 02:27:27PM +0100, Christoph Hellwig wrote:
> Move more code that is only run on the outer open but not the open of
> the underlying whole device when opening a partition into blkdev_get,
> which leads to a much easier to follow structure.
>
> This allows to simplify the disk and module refcounting so that one
> reference is held for each open, similar to what we do with normal
> file operations.
>
> Signed-off-by: Christoph Hellwig <hch at lst.de>
Acked-by: Tejun Heo <tj at kernel.org>
Thanks.
--
tejun
More information about the linux-mtd
mailing list