[dm-devel] [PATCH 21/45] block: refactor blkdev_get

Hannes Reinecke hare at suse.de
Mon Nov 30 07:28:54 UTC 2020


On 11/28/20 5:14 PM, 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>
> Reviewed-by: Jan Kara <jack at suse.cz>
> ---
>   fs/block_dev.c | 185 +++++++++++++++++++++++--------------------------
>   1 file changed, 86 insertions(+), 99 deletions(-)
> 
Reviewed-by: Hannes Reinecke <hare at suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                Kernel Storage Architect
hare at suse.de                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer





More information about the dm-devel mailing list