mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
vfs: for usbfs, etc. internal vfsmounts ->mnt_sb->s_root == ->mnt_root
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
32dc730860
commit
4c1d5a64f1
6 changed files with 8 additions and 8 deletions
|
|
@ -312,7 +312,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)
|
||||
parent = configfs_mount->mnt_sb->s_root;
|
||||
parent = configfs_mount->mnt_root;
|
||||
else
|
||||
return -EFAULT;
|
||||
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ static int debugfs_create_by_name(const char *name, mode_t mode,
|
|||
* have around.
|
||||
*/
|
||||
if (!parent)
|
||||
parent = debugfs_mount->mnt_sb->s_root;
|
||||
parent = debugfs_mount->mnt_root;
|
||||
|
||||
*dentry = NULL;
|
||||
mutex_lock(&parent->d_inode->i_mutex);
|
||||
|
|
|
|||
|
|
@ -725,7 +725,7 @@ static int hppfs_fill_super(struct super_block *sb, void *d, int silent)
|
|||
sb->s_fs_info = proc_mnt;
|
||||
|
||||
err = -ENOMEM;
|
||||
root_inode = get_inode(sb, dget(proc_mnt->mnt_sb->s_root));
|
||||
root_inode = get_inode(sb, dget(proc_mnt->mnt_root));
|
||||
if (!root_inode)
|
||||
goto out_mntput;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue