]> Pileus Git - ~andy/linux/blobdiff - fs/configfs/dir.c
vfs: live vfsmounts never have NULL ->mnt_sb
[~andy/linux] / fs / configfs / dir.c
index 36b1d7aadba1499baf345e3ffdb7dffafc188110..1c52969111041fe0731a1645faf9e15bea5a36e5 100644 (file)
@@ -311,7 +311,7 @@ static int configfs_create_dir(struct config_item * item, struct dentry *dentry)
 
        if (item->ci_parent)
                parent = item->ci_parent->ci_dentry;
-       else if (configfs_mount && configfs_mount->mnt_sb)
+       else if (configfs_mount)
                parent = configfs_mount->mnt_root;
        else
                return -EFAULT;