mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
vfs: spread struct mount - mnt_has_parent
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
1ab5973862
commit
676da58df7
3 changed files with 13 additions and 12 deletions
|
|
@ -2460,8 +2460,9 @@ static int prepend_path(const struct path *path,
|
|||
struct dentry * parent;
|
||||
|
||||
if (dentry == vfsmnt->mnt_root || IS_ROOT(dentry)) {
|
||||
struct mount *mnt = real_mount(vfsmnt);
|
||||
/* Global root? */
|
||||
if (!mnt_has_parent(vfsmnt))
|
||||
if (!mnt_has_parent(mnt))
|
||||
goto global_root;
|
||||
dentry = vfsmnt->mnt_mountpoint;
|
||||
vfsmnt = vfsmnt->mnt_parent;
|
||||
|
|
|
|||
Loading…
Reference in a new issue