patch-2.3.26 linux/fs/nfsd/vfs.c

Next file: linux/fs/proc/Makefile
Previous file: linux/fs/nfsd/nfsfh.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.25/linux/fs/nfsd/vfs.c linux/fs/nfsd/vfs.c
@@ -657,12 +657,9 @@
 	if (!flen)
 		goto out;
 
-	/* from mkdir it won't be verified, from create it will	 */
-	if (!fhp->fh_dverified) {
-		err = fh_verify(rqstp, fhp, S_IFDIR, MAY_CREATE);
-		if (err)
-			goto out;
-	}
+	err = fh_verify(rqstp, fhp, S_IFDIR, MAY_CREATE);
+	if (err)
+		goto out;
 
 	dentry = fhp->fh_dentry;
 	dirp = dentry->d_inode;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)