summaryrefslogtreecommitdiffstats
path: root/fs/sysv/truncate.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-07-05 23:09:37 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-07-05 23:09:37 +0000
commitaba344fdfed81b2c03d6114c54cfd73a486aa10b (patch)
treed032d8430bf1234c3ecc6f6330d6de6e887e5963 /fs/sysv/truncate.c
parent40c138bfc6d37dbff5339f84575db1e3cec6e34e (diff)
Merge with Linux 2.3.9.
Diffstat (limited to 'fs/sysv/truncate.c')
-rw-r--r--fs/sysv/truncate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysv/truncate.c b/fs/sysv/truncate.c
index a8c0e0745..db0f72506 100644
--- a/fs/sysv/truncate.c
+++ b/fs/sysv/truncate.c
@@ -36,7 +36,7 @@
*/
#define DATA_BUFFER_USED(bh) \
- ((bh->b_count > 1) || buffer_locked(bh))
+ (atomic_read(&bh->b_count) || buffer_locked(bh))
/* We throw away any data beyond inode->i_size. */