[fix] get rid of checking for absent device name in vfs_get_tree()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 29 Apr 2019 01:34:21 +0000 (21:34 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 29 Apr 2019 01:34:21 +0000 (21:34 -0400)
It has no business being there, it's checked by relevant ->get_tree()
as it is *and* it returns the wrong error for no reason whatsoever.

Fixes: f3a09c92018a "introduce fs_context methods"
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/super.c

index 583a0124bc394d2919b2fbc346948c5ab9684201..2739f57515f81d8fad4bc4edc83d4c98773308d9 100644 (file)
@@ -1467,11 +1467,6 @@ int vfs_get_tree(struct fs_context *fc)
        struct super_block *sb;
        int error;
 
-       if (fc->fs_type->fs_flags & FS_REQUIRES_DEV && !fc->source) {
-               errorf(fc, "Filesystem requires source device");
-               return -ENOENT;
-       }
-
        if (fc->root)
                return -EBUSY;