diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-09-03 19:05:48 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-09-05 14:34:22 -0400 |
commit | 533770cc0ae84890624dc129609f3d75855c8982 (patch) | |
tree | efaf0d5823cd49d62baa600422d497db6fc0fa04 /fs/super.c | |
parent | 1dd9bc08cf1420d466dd8dcfcc233777e61ca5d2 (diff) |
new helper: get_tree_keyed()
For vfs_get_keyed_super users.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/super.c')
-rw-r--r-- | fs/super.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/super.c b/fs/super.c index 5960578a4076..0220def9baba 100644 --- a/fs/super.c +++ b/fs/super.c | |||
@@ -1211,6 +1211,16 @@ int get_tree_single(struct fs_context *fc, | |||
1211 | } | 1211 | } |
1212 | EXPORT_SYMBOL(get_tree_single); | 1212 | EXPORT_SYMBOL(get_tree_single); |
1213 | 1213 | ||
1214 | int get_tree_keyed(struct fs_context *fc, | ||
1215 | int (*fill_super)(struct super_block *sb, | ||
1216 | struct fs_context *fc), | ||
1217 | void *key) | ||
1218 | { | ||
1219 | fc->s_fs_info = key; | ||
1220 | return vfs_get_super(fc, vfs_get_keyed_super, fill_super); | ||
1221 | } | ||
1222 | EXPORT_SYMBOL(get_tree_keyed); | ||
1223 | |||
1214 | #ifdef CONFIG_BLOCK | 1224 | #ifdef CONFIG_BLOCK |
1215 | static int set_bdev_super(struct super_block *s, void *data) | 1225 | static int set_bdev_super(struct super_block *s, void *data) |
1216 | { | 1226 | { |