xfs: move xattr scrub buffer allocation to top level function
authorDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 02:00:32 +0000 (19:00 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 02:00:32 +0000 (19:00 -0700)
commit5b02a3e8391c703638c5a97513c353aa0c3fd5b0
tree2ab7d01f763d2da4bbee013f4418fdc7514932ff
parentf58977edc0b50bf6aee5a63bff34581b22b2ce63
xfs: move xattr scrub buffer allocation to top level function

Move the xchk_setup_xattr_buf call from xchk_xattr_block to xchk_xattr,
since we only need to set up the leaf block bitmaps once.

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