xfs: speed up xfs_iwalk_adjust_start a little bit
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:30:44 +0000 (12:30 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:30:44 +0000 (12:30 -0800)
commitae05eb117108428895e75a30e7fe3dbf1016cf93
tree51b84e3d6226dc6389e1a721625d47effba89031
parent4b2f459d86252619448455013f581836c8b1b7da
xfs: speed up xfs_iwalk_adjust_start a little bit

Replace the open-coded loop that recomputes freecount with a single call
to a bit weight function.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_iwalk.c