]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: Provide bdev_open_* functions
authorJan Kara <jack@suse.cz>
Wed, 27 Sep 2023 09:34:07 +0000 (11:34 +0200)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:40 +0000 (18:19 -0400)
commitdd0bd429125045e0b5bd87dea1c43b2e593f6213
tree0f9672941713bc3fa67c836a322e99b7522a5adf
parent3721c63d300289a9ab69abe795d8112465f492db
block: Provide bdev_open_* functions

[ Upstream commit 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>
Stable-dep-of: 0f28be64d132 ("erofs: fix lockdep false positives on initializing erofs_pseudo_mnt")
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/bdev.c
include/linux/blkdev.h