summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_buf_item.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@sandeen.net>2007-06-28 16:43:30 +1000
committerTim Shimmin <tes@chook.melbourne.sgi.com>2007-07-14 15:36:43 +1000
commit24ad33ff714bd117cab30e71e2ad41e4e1185108 (patch)
tree301cf623394254fcf224bee4cdd13a9c07586d39 /fs/xfs/xfs_buf_item.c
parent87ae3c2411cfd280e8289e232b718fae9f63950b (diff)
downloadop-kernel-dev-24ad33ff714bd117cab30e71e2ad41e4e1185108.zip
op-kernel-dev-24ad33ff714bd117cab30e71e2ad41e4e1185108.tar.gz
[XFS] Kill off xfs_count_bits
xfs_count_bits is only called once, and is then compared to 0. IOW, what it really wants to know is, is the bitmap empty. This can be done more simply, certainly. SGI-PV: 966503 SGI-Modid: xfs-linux-melb:xfs-kern:28944a Signed-off-by: Eric Sandeen <sandeen@sandeen.net> Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_buf_item.c')
-rw-r--r--fs/xfs/xfs_buf_item.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c
index 6c1bddc..b0667cb 100644
--- a/fs/xfs/xfs_buf_item.c
+++ b/fs/xfs/xfs_buf_item.c
@@ -580,8 +580,8 @@ xfs_buf_item_unlock(
* If the buf item isn't tracking any data, free it.
* Otherwise, if XFS_BLI_HOLD is set clear it.
*/
- if (xfs_count_bits(bip->bli_format.blf_data_map,
- bip->bli_format.blf_map_size, 0) == 0) {
+ if (xfs_bitmap_empty(bip->bli_format.blf_data_map,
+ bip->bli_format.blf_map_size)) {
xfs_buf_item_relse(bp);
} else if (hold) {
bip->bli_flags &= ~XFS_BLI_HOLD;
OpenPOWER on IntegriCloud