block: Provide bdev_open_* functions
mainline inclusion from mainline-v6.7-rc1 commit e719b4d156749f02eafed31a3c515f2aa9dcc72a category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8KPBR CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v6.7-rc3&id=e719b4d156749f02eafed31a3c515f2aa9dcc72a ------------------------------------------- Create struct bdev_handle that contains all parameters that need to be passed to blkdev_put() and provide bdev_open_* functions that return this structure instead of plain bdev pointer. This will eventually allow us to pass one more argument to blkdev_put() (renamed to bdev_release()) without too much hassle. Acked-by:Christoph Hellwig <hch@lst.de> Reviewed-by:
Christian Brauner <brauner@kernel.org> Signed-off-by:
Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20230927093442.25915-1-jack@suse.cz Signed-off-by:
Christian Brauner <brauner@kernel.org> Signed-off-by:
Li Lingfeng <lilingfeng3@huawei.com>
Loading
Please sign in to comment