summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/attr.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-08-04 12:37:08 -0700
committerDarrick J. Wong <djwong@kernel.org>2022-10-14 14:16:33 -0700
commit84803ad97be7cedd2a00a30e04ad4329161fc975 (patch)
tree0d154adcc22803b487e59eaaf3c10c79b180e64e /fs/xfs/scrub/attr.h
parent2dc9e21e68e01ab8df349e7f010e6d6504565327 (diff)
xfs: split valuebuf from xchk_xattr_buf.buf
Move the xattr value buffer from somewhere in xchk_xattr_buf.buf[] to an explicit pointer. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/attr.h')
-rw-r--r--fs/xfs/scrub/attr.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/fs/xfs/scrub/attr.h b/fs/xfs/scrub/attr.h
index f6f033c19118..18445cc3d33b 100644
--- a/fs/xfs/scrub/attr.h
+++ b/fs/xfs/scrub/attr.h
@@ -16,24 +16,9 @@ struct xchk_xattr_buf {
/* Bitmap of free space in xattr leaf blocks. */
unsigned long *freemap;
- /* Size of @buf, in bytes. */
- size_t sz;
-
- /*
- * Memory buffer -- used for extracting attr values while walking the
- * attributes.
- */
- uint8_t buf[];
+ /* Memory buffer used to extract xattr values. */
+ void *value;
+ size_t value_sz;
};
-/* A place to store attribute values. */
-static inline uint8_t *
-xchk_xattr_valuebuf(
- struct xfs_scrub *sc)
-{
- struct xchk_xattr_buf *ab = sc->buf;
-
- return ab->buf;
-}
-
#endif /* __XFS_SCRUB_ATTR_H__ */