summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/attr.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-08-04 11:52:16 -0700
committerDarrick J. Wong <djwong@kernel.org>2022-10-14 14:16:32 -0700
commit151a8af152441184490259f827935defe2d23a99 (patch)
tree649c5fca2ecefef373ddd71c9b153b71407da8eb /fs/xfs/scrub/attr.h
parentd625c0c5ad6396e39f79a5d41aab60cabd4a70d6 (diff)
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>
Diffstat (limited to 'fs/xfs/scrub/attr.h')
-rw-r--r--fs/xfs/scrub/attr.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/fs/xfs/scrub/attr.h b/fs/xfs/scrub/attr.h
index 3590e10e3e62..be133e0da71b 100644
--- a/fs/xfs/scrub/attr.h
+++ b/fs/xfs/scrub/attr.h
@@ -21,8 +21,7 @@ struct xchk_xattr_buf {
* Each bitmap contains enough bits to track every byte in an attr
* block (rounded up to the size of an unsigned long). The attr block
* used space bitmap starts at the beginning of the buffer; the free
- * space bitmap follows immediately after; and we have a third buffer
- * for storing intermediate bitmap results.
+ * space bitmap follows immediately after.
*/
uint8_t buf[];
};
@@ -56,13 +55,4 @@ xchk_xattr_freemap(
BITS_TO_LONGS(sc->mp->m_attr_geo->blksize);
}
-/* A bitmap used to hold temporary results. */
-static inline unsigned long *
-xchk_xattr_dstmap(
- struct xfs_scrub *sc)
-{
- return xchk_xattr_freemap(sc) +
- BITS_TO_LONGS(sc->mp->m_attr_geo->blksize);
-}
-
#endif /* __XFS_SCRUB_ATTR_H__ */