summaryrefslogtreecommitdiffstats
path: root/fs/super.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-08-02 17:41:20 +0200
committerChristian Brauner <brauner@kernel.org>2023-08-10 10:34:56 +0200
commitcf6da236c27a73ab91b657232cd3841aab27c37a (patch)
treeb45e4643f399107bc05f12888b495aeb16b528cd /fs/super.c
parentfs: open block device after superblock creation (diff)
downloadlinux-cf6da236c27a73ab91b657232cd3841aab27c37a.tar.xz
linux-cf6da236c27a73ab91b657232cd3841aab27c37a.zip
fs: export setup_bdev_super
We'll want to use setup_bdev_super instead of duplicating it in nilfs2. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Christian Brauner <brauner@kernel.org> Message-Id: <20230802154131.2221419-2-hch@lst.de> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/super.c')
-rw-r--r--fs/super.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/super.c b/fs/super.c
index 249558ecfd77..a366bc65886e 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -1243,7 +1243,7 @@ static int test_bdev_super_fc(struct super_block *s, struct fs_context *fc)
s->s_dev == *(dev_t *)fc->sget_key;
}
-static int setup_bdev_super(struct super_block *sb, int sb_flags,
+int setup_bdev_super(struct super_block *sb, int sb_flags,
struct fs_context *fc)
{
blk_mode_t mode = sb_open_mode(sb_flags);
@@ -1295,6 +1295,7 @@ static int setup_bdev_super(struct super_block *sb, int sb_flags,
sb_set_blocksize(sb, block_size(bdev));
return 0;
}
+EXPORT_SYMBOL_GPL(setup_bdev_super);
/**
* get_tree_bdev - Get a superblock based on a single block device