diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-03-17 01:16:35 +0100 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-03-18 16:12:23 +0100 |
commit | 608eb3cee7037c99f7a2d808dac1b8976492a828 (patch) | |
tree | 2c400432c8b31c31f7df08d4ba31e4ec237e1167 /fs/xfs/scrub/bitmap.h | |
parent | xfs: rename xfs_bitmap to xbitmap (diff) | |
download | linux-608eb3cee7037c99f7a2d808dac1b8976492a828.tar.xz linux-608eb3cee7037c99f7a2d808dac1b8976492a828.zip |
xfs: replace open-coded bitmap weight logic
Add a xbitmap_hweight helper function so that we can get rid of the
open-coded loop.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/scrub/bitmap.h')
-rw-r--r-- | fs/xfs/scrub/bitmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/scrub/bitmap.h b/fs/xfs/scrub/bitmap.h index 8db4017ac78e..900646b72de1 100644 --- a/fs/xfs/scrub/bitmap.h +++ b/fs/xfs/scrub/bitmap.h @@ -32,5 +32,6 @@ int xbitmap_set_btcur_path(struct xbitmap *bitmap, struct xfs_btree_cur *cur); int xbitmap_set_btblocks(struct xbitmap *bitmap, struct xfs_btree_cur *cur); +uint64_t xbitmap_hweight(struct xbitmap *bitmap); #endif /* __XFS_SCRUB_BITMAP_H__ */ |