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>
This commit is contained in:
Al Viro
2019-06-01 20:48:55 -04:00
parent 023d066a0d
commit 2ac295d4f0
4 changed files with 13 additions and 2 deletions

View File

@@ -1198,6 +1198,14 @@ int vfs_get_super(struct fs_context *fc,
}
EXPORT_SYMBOL(vfs_get_super);
int get_tree_nodev(struct fs_context *fc,
int (*fill_super)(struct super_block *sb,
struct fs_context *fc))
{
return vfs_get_super(fc, vfs_get_independent_super, fill_super);
}
EXPORT_SYMBOL(get_tree_nodev);
#ifdef CONFIG_BLOCK
static int set_bdev_super(struct super_block *s, void *data)
{