summaryrefslogtreecommitdiffstats
path: root/fs/romfs
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2023-09-27 11:34:25 +0200
committerChristian Brauner <brauner@kernel.org>2023-10-28 13:29:19 +0200
commitf4a48bc36cdfae7c603e8e3f2a51e2a283f3f365 (patch)
treecd0ea5f3e0aff2143ad21c8db7ec01456659c103 /fs/romfs
parentmm/swap: Convert to use bdev_open_by_dev() (diff)
downloadlinux-f4a48bc36cdfae7c603e8e3f2a51e2a283f3f365.tar.xz
linux-f4a48bc36cdfae7c603e8e3f2a51e2a283f3f365.zip
fs: Convert to bdev_open_by_dev()
Convert mount code to use bdev_open_by_dev() and propagate the handle around to bdev_release(). 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-19-jack@suse.cz Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/romfs')
-rw-r--r--fs/romfs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/romfs/super.c b/fs/romfs/super.c
index 5c35f6c76037..b1bdfbc211c3 100644
--- a/fs/romfs/super.c
+++ b/fs/romfs/super.c
@@ -593,7 +593,7 @@ static void romfs_kill_sb(struct super_block *sb)
#ifdef CONFIG_ROMFS_ON_BLOCK
if (sb->s_bdev) {
sync_blockdev(sb->s_bdev);
- blkdev_put(sb->s_bdev, sb);
+ bdev_release(sb->s_bdev_handle);
}
#endif
}