kNFSd - 2 of 4 - Fix incorrect call for follow_up
Subsystems (2)
PATCH 1/1 kNFSd - 2 of 4 - Fix incorrect call for follow_up
### Comments for ChangeSet
follow_up doesn't check that the passed dentry is at the root of the mounted file system, so we have to do that, to avoid calling follow_up too many times.
----------- Diffstat output ------------
./fs/nfsd/vfs.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
fs/nfsd/vfs.c renamed from fs/nfsd/vfs.c~current~ +1 -1
@@ -161,7 +161,7 @@ nfsd_lookup(struct svc_rqst *rqstp, strustruct dentry *dp;struct vfsmount *mnt =mntget (exp->ex_mnt); dentry =dget (dparent); -while (follow_up (&mnt, &dentry)) +while (dentry == mnt->mnt_root &&follow_up (&mnt, &dentry)) ; dp =dget_parent (dentry);dput (dentry);
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs