patch-2.1.43 linux/include/linux/nfsd/nfsfh.h

Next file: linux/include/linux/omirr.h
Previous file: linux/include/linux/nametrans.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.42/linux/include/linux/nfsd/nfsfh.h linux/include/linux/nfsd/nfsfh.h
@@ -151,7 +151,7 @@
 	if (!(inode = fhp->fh_inode))
 		return;
 
-	if (!inode->i_count) {
+	if (!atomic_read(&inode->i_count)) {
 		printk("nfsd: trying to free free inode in %s:%d\n"
 		       "      dev %04x ino %ld, mode %07o\n",
 		       file, line, inode->i_dev,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov