Commit 7d79673b authored by Jan Kara's avatar Jan Kara Committed by Li Lingfeng
Browse files

btrfs: Convert to bdev_open_by_path()

mainline inclusion
from mainline-v6.7-rc1
commit 86ec15d00bf85801bda57b5d181a2978f828a8cf
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=86ec15d00bf85801bda57b5d181a2978f828a8cf



-------------------------------------------

Convert btrfs to use bdev_open_by_path() and pass the handle around.  We
also drop the holder from struct btrfs_device as it is now not needed
anymore.

CC: David Sterba <dsterba@suse.com>
CC: linux-btrfs@vger.kernel.org
Acked-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarChristian Brauner <brauner@kernel.org>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230927093442.25915-20-jack@suse.cz


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
Signed-off-by: default avatarLi Lingfeng <lilingfeng3@huawei.com>
parent 353283ea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment