aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 8c1f48ae68e7..4d49a3eee6d4 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -731,16 +731,16 @@ static void follow_mount(struct vfsmount **mnt, struct dentry **dentry)
731/* no need for dcache_lock, as serialization is taken care in 731/* no need for dcache_lock, as serialization is taken care in
732 * namespace.c 732 * namespace.c
733 */ 733 */
734int follow_down(struct vfsmount **mnt, struct dentry **dentry) 734int follow_down(struct path *path)
735{ 735{
736 struct vfsmount *mounted; 736 struct vfsmount *mounted;
737 737
738 mounted = lookup_mnt(*mnt, *dentry); 738 mounted = lookup_mnt(path->mnt, path->dentry);
739 if (mounted) { 739 if (mounted) {
740 dput(*dentry); 740 dput(path->dentry);
741 mntput(*mnt); 741 mntput(path->mnt);
742 *mnt = mounted; 742 path->mnt = mounted;
743 *dentry = dget(mounted->mnt_root); 743 path->dentry = dget(mounted->mnt_root);
744 return 1; 744 return 1;
745 } 745 }
746 return 0; 746 return 0;