mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-04 21:31:51 +00:00
vfs: live vfsmounts never have NULL ->mnt_sb
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
4c1d5a64f1
commit
c972b4bc83
2 changed files with 3 additions and 4 deletions
|
@ -264,7 +264,7 @@ static int remount(struct super_block *sb, int *flags, char *data)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (usbfs_mount && usbfs_mount->mnt_sb)
|
if (usbfs_mount)
|
||||||
update_sb(usbfs_mount->mnt_sb);
|
update_sb(usbfs_mount->mnt_sb);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -500,9 +500,8 @@ static int fs_create_by_name (const char *name, mode_t mode,
|
||||||
* have around.
|
* have around.
|
||||||
*/
|
*/
|
||||||
if (!parent ) {
|
if (!parent ) {
|
||||||
if (usbfs_mount && usbfs_mount->mnt_sb) {
|
if (usbfs_mount)
|
||||||
parent = usbfs_mount->mnt_root;
|
parent = usbfs_mount->mnt_root;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!parent) {
|
if (!parent) {
|
||||||
|
|
|
@ -311,7 +311,7 @@ static int configfs_create_dir(struct config_item * item, struct dentry *dentry)
|
||||||
|
|
||||||
if (item->ci_parent)
|
if (item->ci_parent)
|
||||||
parent = item->ci_parent->ci_dentry;
|
parent = item->ci_parent->ci_dentry;
|
||||||
else if (configfs_mount && configfs_mount->mnt_sb)
|
else if (configfs_mount)
|
||||||
parent = configfs_mount->mnt_root;
|
parent = configfs_mount->mnt_root;
|
||||||
else
|
else
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue