OSDN Git Service

xfs: make AGFL repair function avoid crosslinked blocks
authorDarrick J. Wong <djwong@kernel.org>
Mon, 7 Nov 2022 01:03:14 +0000 (17:03 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 16 Nov 2022 23:25:01 +0000 (15:25 -0800)
commitb255fab0f80cc65a334fcd90cd278673cddbc988
tree40b87933bca9746cf24ca4c6c8a2836693025bce
parent3e59c0103e66d6e687a8b47fd70169542aba938e
xfs: make AGFL repair function avoid crosslinked blocks

Teach the AGFL repair function to check each block of the proposed AGFL
against the rmap btree.  If the rmapbt finds any mappings that are not
OWN_AG, strike that block from the list.

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