summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-12-09 05:01:06 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-04 04:52:42 +0100
commitc972b4bc8331b432f51a5f1bc3ca7e020172717f (patch)
tree2eefe85d32357b53c51a14c84bca7ea4ff47876b /fs
parentvfs: for usbfs, etc. internal vfsmounts ->mnt_sb->s_root == ->mnt_root (diff)
downloadlinux-c972b4bc8331b432f51a5f1bc3ca7e020172717f.tar.xz
linux-c972b4bc8331b432f51a5f1bc3ca7e020172717f.zip
vfs: live vfsmounts never have NULL ->mnt_sb
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/configfs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c
index 36b1d7aadba1..1c5296911104 100644
--- a/fs/configfs/dir.c
+++ b/fs/configfs/dir.c
@@ -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;