kNFSd - 3 of 6 - Fix incorrect call for follow_up
Subsystems (2)
PATCH 1/1 kNFSd - 3 of 6 - Fix incorrect call for follow_up
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);
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs