summaryrefslogtreecommitdiffstats
path: root/fs/super.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-06-01 20:48:55 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2019-07-04 22:01:58 -0400
commit2ac295d4f0c095310addbcb03d91d2a4c9f7d435 (patch)
tree62163f9641929535b05fc9e7ad0c7ebccb807f58 /fs/super.c
parent023d066a0d0a87696c04b0de2ceae53063d0b655 (diff)
convenience helper get_tree_nodev()
counterpart of mount_nodev(). Switch hugetlb and pseudo to it. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/super.c')
-rw-r--r--fs/super.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/super.c b/fs/super.c
index ca2302501d32..3318225b0878 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -1198,6 +1198,14 @@ int vfs_get_super(struct fs_context *fc,
1198} 1198}
1199EXPORT_SYMBOL(vfs_get_super); 1199EXPORT_SYMBOL(vfs_get_super);
1200 1200
1201int get_tree_nodev(struct fs_context *fc,
1202 int (*fill_super)(struct super_block *sb,
1203 struct fs_context *fc))
1204{
1205 return vfs_get_super(fc, vfs_get_independent_super, fill_super);
1206}
1207EXPORT_SYMBOL(get_tree_nodev);
1208
1201#ifdef CONFIG_BLOCK 1209#ifdef CONFIG_BLOCK
1202static int set_bdev_super(struct super_block *s, void *data) 1210static int set_bdev_super(struct super_block *s, void *data)
1203{ 1211{