xfs: split freemap from xchk_xattr_buf.buf
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)
commit91781ff549379a867d8fbe588a4c95f6598b1fa9
tree4d1b4728f3845c4db95ff4dddb348dc31a7d94a1
parent4cb76025208925f697de66ac4d2d821cafabd367
xfs: split freemap from xchk_xattr_buf.buf

Move the free space bitmap from somewhere in xchk_xattr_buf.buf[] to an
explicit pointer.  This is the start of removing the complex overloaded
memory buffer that is the source of weird memory misuse bugs.

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
fs/xfs/scrub/scrub.c
fs/xfs/scrub/scrub.h