patch-2.4.0-test2 linux/fs/hfs/inode.c

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

diff -u --recursive --new-file v2.4.0-test1/linux/fs/hfs/inode.c linux/fs/hfs/inode.c
@@ -80,7 +80,7 @@
 	struct hfs_cat_entry *entry = HFS_I(inode)->entry;
 
 	hfs_cat_put(entry);
-	if (inode->i_count == 1) {
+	if (atomic_read(&inode->i_count) == 1) {
 	  struct hfs_hdr_layout *tmp = HFS_I(inode)->layout;
 
 	  if (tmp) {

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