patch-2.3.9 linux/fs/ufs/truncate.c
Next file: linux/fs/ufs/util.c
Previous file: linux/fs/ufs/symlink.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/ufs/truncate.c
-  Orig date: 
Wed Jun 16 19:26:27 1999
diff -u --recursive --new-file v2.3.8/linux/fs/ufs/truncate.c linux/fs/ufs/truncate.c
@@ -63,7 +63,7 @@
 #define DIRECT_FRAGMENT howmany (inode->i_size, uspi->s_fsize)
 
 #define DATA_BUFFER_USED(bh) \
-	((bh->b_count > 1) || buffer_locked(bh))
+	(atomic_read(&bh->b_count) || buffer_locked(bh))
 
 static int ufs_trunc_direct (struct inode * inode)
 {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)