patch-pre2.0.10 linux/fs/nfs/dir.c

Next file: linux/fs/nfs/nfsroot.c
Previous file: linux/fs/ncpfs/dir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.9/linux/fs/nfs/dir.c linux/fs/nfs/dir.c
@@ -450,7 +450,12 @@
 	error = nfs_proc_create(NFS_SERVER(dir), NFS_FH(dir),
 		name, &sattr, &fhandle, &fattr);
 	if (!error)
+	{
 		nfs_lookup_cache_add(dir, name, &fhandle, &fattr);
+		/* The parent dir inode count may have changed ! */
+		nfs_lookup_cache_remove( NULL, dir, NULL);
+	}
+		
 	iput(dir);
 	return error;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this