summaryrefslogtreecommitdiffstats
path: root/fs/xfs/scrub/attr.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/scrub/attr.h')
-rw-r--r--fs/xfs/scrub/attr.h22
1 files changed, 5 insertions, 17 deletions
diff --git a/fs/xfs/scrub/attr.h b/fs/xfs/scrub/attr.h
index 341855b3201b..525f45815526 100644
--- a/fs/xfs/scrub/attr.h
+++ b/fs/xfs/scrub/attr.h
@@ -10,6 +10,9 @@
* Temporary storage for online scrub and repair of extended attributes.
*/
struct xchk_xattr_buf {
+ /* Bitmap of used space in xattr leaf blocks. */
+ unsigned long *usedmap;
+
/* Bitmap of free space in xattr leaf blocks. */
unsigned long *freemap;
@@ -17,13 +20,8 @@ struct xchk_xattr_buf {
size_t sz;
/*
- * Memory buffer -- either used for extracting attr values while
- * walking the attributes; or for computing attr block bitmaps when
- * checking the attribute tree.
- *
- * 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.
+ * Memory buffer -- used for extracting attr values while walking the
+ * attributes.
*/
uint8_t buf[];
};
@@ -38,14 +36,4 @@ xchk_xattr_valuebuf(
return ab->buf;
}
-/* A bitmap of space usage computed by walking an attr leaf block. */
-static inline unsigned long *
-xchk_xattr_usedmap(
- struct xfs_scrub *sc)
-{
- struct xchk_xattr_buf *ab = sc->buf;
-
- return (unsigned long *)ab->buf;
-}
-
#endif /* __XFS_SCRUB_ATTR_H__ */