aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/vfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index 7b2b3f775326..99f835753596 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -105,8 +105,7 @@ nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp,
105 .dentry = dget(dentry)}; 105 .dentry = dget(dentry)};
106 int err = 0; 106 int err = 0;
107 107
108 while (follow_down(&path.mnt, &path.dentry) && 108 while (d_mountpoint(path.dentry) && follow_down(&path))
109 d_mountpoint(path.dentry))
110 ; 109 ;
111 110
112 exp2 = rqst_exp_get_by_name(rqstp, &path); 111 exp2 = rqst_exp_get_by_name(rqstp, &path);