patch-2.4.0-test2 linux/fs/nfs/flushd.c

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

diff -u --recursive --new-file v2.4.0-test1/linux/fs/nfs/flushd.c linux/fs/nfs/flushd.c
@@ -175,7 +175,7 @@
 	 *	 it from disappearing when on the flush list
 	 */
 	NFS_FLAGS(inode) |= NFS_INO_FLUSH;
-	inode->i_count++;
+	atomic_inc(&inode->i_count);
  out:
 	spin_unlock(&nfs_flushd_lock);
 }

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