diff options
-rw-r--r-- | fs/nfsd/vfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index a293f0273263..b8ed58bab8b1 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
@@ -169,7 +169,7 @@ nfsd_lookup_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp, | |||
169 | dentry = dget(dparent); | 169 | dentry = dget(dparent); |
170 | else if (dparent != exp->ex_path.dentry) | 170 | else if (dparent != exp->ex_path.dentry) |
171 | dentry = dget_parent(dparent); | 171 | dentry = dget_parent(dparent); |
172 | else if (!EX_NOHIDE(exp)) | 172 | else if (!EX_NOHIDE(exp) && !nfsd_v4client(rqstp)) |
173 | dentry = dget(dparent); /* .. == . just like at / */ | 173 | dentry = dget(dparent); /* .. == . just like at / */ |
174 | else { | 174 | else { |
175 | /* checking mountpoint crossing is very different when stepping up */ | 175 | /* checking mountpoint crossing is very different when stepping up */ |