xfs: complain about bad records in query_range helpers
authorDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 02:00:04 +0000 (19:00 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 02:00:04 +0000 (19:00 -0700)
commitee12eaaa435a7be17152ac50943ee77249de624a
treefc7b010f0de443c60d9daa0cc6137b97ad60a1e2
parent69010fe3ac1fe9932a64268c32b67964fe5c06a8
xfs: complain about bad records in query_range helpers

For every btree type except for the bmbt, refactor the code that
complains about bad records into a helper and make the ->query_range
helpers call it so that corruptions found via that avenue are logged.

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