Commit 114a27ac authored by Jan Kara's avatar Jan Kara Committed by Li Lingfeng
Browse files

md: Convert to bdev_open_by_dev()

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



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

Convert md to use bdev_open_by_dev() and pass the handle around. We also
don't need the 'Holder' flag anymore so remove it.

CC: linux-raid@vger.kernel.org
CC: Song Liu <song@kernel.org>
Acked-by: default avatarSong Liu <song@kernel.org>
Acked-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarChristian Brauner <brauner@kernel.org>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230927093442.25915-11-jack@suse.cz


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