diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2007-06-28 02:43:30 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-07-14 01:36:43 -0400 |
commit | 24ad33ff714bd117cab30e71e2ad41e4e1185108 (patch) | |
tree | 301cf623394254fcf224bee4cdd13a9c07586d39 /fs/xfs/xfs_bit.h | |
parent | 87ae3c2411cfd280e8289e232b718fae9f63950b (diff) |
[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_bit.h')
-rw-r--r-- | fs/xfs/xfs_bit.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_bit.h b/fs/xfs/xfs_bit.h index 0bbe56817542..082641a9782c 100644 --- a/fs/xfs/xfs_bit.h +++ b/fs/xfs/xfs_bit.h | |||
@@ -55,8 +55,8 @@ extern int xfs_lowbit64(__uint64_t v); | |||
55 | /* Get high bit set out of 64-bit argument, -1 if none set */ | 55 | /* Get high bit set out of 64-bit argument, -1 if none set */ |
56 | extern int xfs_highbit64(__uint64_t); | 56 | extern int xfs_highbit64(__uint64_t); |
57 | 57 | ||
58 | /* Count set bits in map starting with start_bit */ | 58 | /* Return whether bitmap is empty (1 == empty) */ |
59 | extern int xfs_count_bits(uint *map, uint size, uint start_bit); | 59 | extern int xfs_bitmap_empty(uint *map, uint size); |
60 | 60 | ||
61 | /* Count continuous one bits in map starting with start_bit */ | 61 | /* Count continuous one bits in map starting with start_bit */ |
62 | extern int xfs_contig_bits(uint *map, uint size, uint start_bit); | 62 | extern int xfs_contig_bits(uint *map, uint size, uint start_bit); |