commit | 676da58df740f325034b8641311413c2393588e1 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Thu Nov 24 21:47:05 2011 -0500 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Tue Jan 03 22:57:04 2012 -0500 |
tree | 88d1e385d368d73c7b1284da2fc46516879a867d | |
parent | 1ab597386205f8dc757cf8750465502aeae65154 [diff] [blame] |
vfs: spread struct mount - mnt_has_parent Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/dcache.c b/fs/dcache.c index 64c8ce4..1834e71 100644 --- a/fs/dcache.c +++ b/fs/dcache.c
@@ -2460,8 +2460,9 @@ 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;