patch-2.1.43 linux/fs/smbfs/mmap.c

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

diff -u --recursive --new-file v2.1.42/linux/fs/smbfs/mmap.c linux/fs/smbfs/mmap.c
@@ -120,7 +120,7 @@
 		inode->i_dirt = 1;
 	}
 	vma->vm_inode = inode;
-	inode->i_count++;
+	atomic_inc(&inode->i_count);
 	vma->vm_ops = &smb_file_mmap;
 	return 0;
 }

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