patch-2.3.9 linux/fs/sysv/balloc.c
Next file: linux/fs/sysv/dir.c
Previous file: linux/fs/smbfs/inode.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Tue Jun 29 09:22:08 1999
-  Orig file: 
v2.3.8/linux/fs/sysv/balloc.c
-  Orig date: 
Sun Sep 13 10:27:07 1998
diff -u --recursive --new-file v2.3.8/linux/fs/sysv/balloc.c linux/fs/sysv/balloc.c
@@ -201,7 +201,7 @@
 		unlock_super(sb);
 		return 0;
 	}
-	if (bh->b_count != 1) {
+	if (atomic_read(&bh->b_count) != 1) {
 		printk("sysv_new_block: block already in use\n");
 		unlock_super(sb);
 		return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)