diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-05-22 21:23:39 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-07-04 22:01:58 -0400 |
commit | c23a0bbab30cc1714b6b1d6a1c153a5ccab3f0d8 (patch) | |
tree | b58d6ed34a26200796664d1dca3c10629cfdb8ea /fs/super.c | |
parent | 2ac295d4f0c095310addbcb03d91d2a4c9f7d435 (diff) |
convenience helper: get_tree_single()
counterpart of mount_single(); switch fusectl to it
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/super.c')
-rw-r--r-- | fs/super.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/super.c b/fs/super.c index 3318225b0878..113c58f19425 100644 --- a/fs/super.c +++ b/fs/super.c | |||
@@ -1206,6 +1206,14 @@ int get_tree_nodev(struct fs_context *fc, | |||
1206 | } | 1206 | } |
1207 | EXPORT_SYMBOL(get_tree_nodev); | 1207 | EXPORT_SYMBOL(get_tree_nodev); |
1208 | 1208 | ||
1209 | int get_tree_single(struct fs_context *fc, | ||
1210 | int (*fill_super)(struct super_block *sb, | ||
1211 | struct fs_context *fc)) | ||
1212 | { | ||
1213 | return vfs_get_super(fc, vfs_get_single_super, fill_super); | ||
1214 | } | ||
1215 | EXPORT_SYMBOL(get_tree_single); | ||
1216 | |||
1209 | #ifdef CONFIG_BLOCK | 1217 | #ifdef CONFIG_BLOCK |
1210 | static int set_bdev_super(struct super_block *s, void *data) | 1218 | static int set_bdev_super(struct super_block *s, void *data) |
1211 | { | 1219 | { |