patch-2.1.34 linux/fs/romfs/inode.c

Next file: linux/fs/super.c
Previous file: linux/fs/proc/openpromfs.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.33/linux/fs/romfs/inode.c linux/fs/romfs/inode.c
@@ -373,7 +373,7 @@
 	int result = -EIO;
 
 	buf = page_address(page);
-	page->count++;
+	atomic_inc(&page->count);
 	offset = page->offset;
 	if (offset < inode->i_size) {
 		avail = inode->i_size-offset;

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