xfs: hoist rmap record flag checks from scrub
authorDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 02:00:05 +0000 (19:00 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 02:00:05 +0000 (19:00 -0700)
commit7d7d6d2fd0444904f12e70d9c930556c4eb44337
treeff3422383f174f01bc42c9934d4de2c9e93ec880
parent6a3bd8fcf9afb47c703cb268f30f60aa2e7af86a
xfs: hoist rmap record flag checks from scrub

Move the rmap record flag checks from xchk_rmapbt_rec into
xfs_rmap_check_irec so that they are applied everywhere.

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