]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: replace open-coded bitmap weight logic
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 17 Mar 2020 00:16:35 +0000 (17:16 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 18 Mar 2020 15:12:23 +0000 (08:12 -0700)
commitffd29c53125c557debf05a31b4b8224d3517929c
tree2c400432c8b31c31f7df08d4ba31e4ec237e1167
parent55ff18eab77b05a3c3ebed6e1f3e600934e2d476
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>
fs/xfs/scrub/agheader_repair.c
fs/xfs/scrub/bitmap.c
fs/xfs/scrub/bitmap.h