patch-2.1.43 linux/fs/minix/bitmap.c

Next file: linux/fs/minix/dir.c
Previous file: linux/fs/isofs/symlink.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.42/linux/fs/minix/bitmap.c linux/fs/minix/bitmap.c
@@ -191,8 +191,8 @@
 		printk("free_inode: inode has no device\n");
 		return;
 	}
-	if (inode->i_count != 1) {
-		printk("free_inode: inode has count=%d\n",inode->i_count);
+	if (atomic_read(&inode->i_count) != 1) {
+		printk("free_inode: inode has count=%d\n",atomic_read(&inode->i_count));
 		return;
 	}
 	if (inode->i_nlink) {
@@ -251,7 +251,7 @@
 		iput(inode);
 		return NULL;
 	}
-	inode->i_count = 1;
+	atomic_set(&inode->i_count, 1);
 	inode->i_nlink = 1;
 	inode->i_dev = sb->s_dev;
 	inode->i_uid = current->fsuid;

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