xfs: split the xchk_bmap_check_rmaps into a predicate
authorDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 02:00:25 +0000 (19:00 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 02:00:25 +0000 (19:00 -0700)
commite8882f69b941b20704ea509ebfca2d8a123ad6e3
tree937b1aced3dd55a6806a2eea4a4702c16c77e9a0
parent336642f79283715e4535bfaa05f5593dd91da6e8
xfs: split the xchk_bmap_check_rmaps into a predicate

This function has two parts: the second part scans every reverse mapping
record for this file fork to make sure that there's a corresponding
mapping in the fork, and the first part decides if we even want to do
that.

Split the first part into a separate predicate so that we can make more
changes to it in the next patch.

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