Skip to content

Commit

Permalink
vfs: live vfsmounts never have NULL ->mnt_sb
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Jan 4, 2012
1 parent 4c1d5a6 commit c972b4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions drivers/usb/core/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ static int remount(struct super_block *sb, int *flags, char *data)
return -EINVAL;
}

if (usbfs_mount && usbfs_mount->mnt_sb)
if (usbfs_mount)
update_sb(usbfs_mount->mnt_sb);

return 0;
Expand Down Expand Up @@ -500,9 +500,8 @@ static int fs_create_by_name (const char *name, mode_t mode,
* have around.
*/
if (!parent ) {
if (usbfs_mount && usbfs_mount->mnt_sb) {
if (usbfs_mount)
parent = usbfs_mount->mnt_root;
}
}

if (!parent) {
Expand Down
2 changes: 1 addition & 1 deletion fs/configfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c972b4b

Please sign in to comment.