xfs: scrub should set preen if attr leaf has holes
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:46 +0000 (14:54 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:58:54 +0000 (14:58 -0700)
commit0ee230dec2626ef25dc96abd47b84494f9c251e3
tree66d9dbd37f3817e60dd76868aa005791b299e9f4
parente47dcf113ae348678143cc935a1183059c02c9ad
xfs: scrub should set preen if attr leaf has holes

If an attr block indicates that it could use compaction, set the preen
flag to have the attr fork rebuilt, since the attr fork rebuilder can
take care of that for us.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/attr.c
fs/xfs/scrub/dabtree.c
fs/xfs/scrub/dabtree.h
fs/xfs/scrub/trace.h