xfs: remove unnecessary dstmap in xattr scrubber
authorDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 02:00:30 +0000 (19:00 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 02:00:30 +0000 (19:00 -0700)
commit4cb76025208925f697de66ac4d2d821cafabd367
treee0dd7385064298eda0828a9ca592e938ffc663c7
parentee366fe4f519f0739a2c62cf998f58932e77c6a9
xfs: remove unnecessary dstmap in xattr scrubber

Replace bitmap_and with bitmap_intersects in the xattr leaf block
scrubber, since we only care if there's overlap between the used space
bitmap and the free space bitmap.  This means we don't need dstmap any
more, and can thus reduce the memory requirements.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/attr.c
fs/xfs/scrub/attr.h