aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-11-24 22:25:07 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-03 22:57:05 -0500
commita73324da7af4052e1d1ddec6a5980f552420e58b (patch)
tree65c119bf3bb852c4298aeb24b906dc3a5be7520a /fs/namei.c
parent0714a533805a0f8ebfc6fdb6bda9f129b8c7c6d7 (diff)
vfs: move mnt_mountpoint to struct mount
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 2e9110a37c0e..87363aab43f0 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -684,7 +684,7 @@ static int follow_up_rcu(struct path *path)
684 parent = mnt->mnt_parent; 684 parent = mnt->mnt_parent;
685 if (&parent->mnt == path->mnt) 685 if (&parent->mnt == path->mnt)
686 return 0; 686 return 0;
687 mountpoint = mnt->mnt.mnt_mountpoint; 687 mountpoint = mnt->mnt_mountpoint;
688 path->dentry = mountpoint; 688 path->dentry = mountpoint;
689 path->mnt = &parent->mnt; 689 path->mnt = &parent->mnt;
690 return 1; 690 return 1;
@@ -703,7 +703,7 @@ int follow_up(struct path *path)
703 return 0; 703 return 0;
704 } 704 }
705 mntget(&parent->mnt); 705 mntget(&parent->mnt);
706 mountpoint = dget(mnt->mnt.mnt_mountpoint); 706 mountpoint = dget(mnt->mnt_mountpoint);
707 br_read_unlock(vfsmount_lock); 707 br_read_unlock(vfsmount_lock);
708 dput(path->dentry); 708 dput(path->dentry);
709 path->dentry = mountpoint; 709 path->dentry = mountpoint;