xfs: teach scrub to check for adjacent bmaps when rmap larger than bmap
authorDarrick J. Wong <djwong@kernel.org>
Mon, 7 Nov 2022 01:03:20 +0000 (17:03 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 16 Nov 2022 23:25:04 +0000 (15:25 -0800)
commit6a5777865eebee1b53d7ae0fd2fa9ec2c6596df6
tree25c7ddff5354b1b6cc73b4504f88c05b97f70cad
parent033985b6fe875a7a971cf4e3941e1f3085ba037c
xfs: teach scrub to check for adjacent bmaps when rmap larger than bmap

When scrub is checking file fork mappings against rmap records and
the rmap record starts before or ends after the bmap record, check the
adjacent bmap records to make sure that they're adjacent to the one
we're checking.  This helps us to detect cases where the rmaps cover
territory that the bmaps do not.

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