summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-11-23 12:19:22 +0300
committerJens Axboe <axboe@kernel.dk>2020-12-02 00:53:39 +0300
commit5b56b6ed574b583b07da9d824c1eca6d67c1074e (patch)
treeadf38195b9fe9213aa0c621e328b9a0cb4e1e721 /scripts
parentec5d451438a2f24c9b9c33c195bc2c39dcd3d3f0 (diff)
downloadlinux-5b56b6ed574b583b07da9d824c1eca6d67c1074e.tar.xz
block: refactor blkdev_get
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@lst.de> Acked-by: Tejun Heo <tj@kernel.org> Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions