]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: complain about bad records in query_range helpers
authorDarrick J. Wong <djwong@kernel.org>
Wed, 31 May 2023 08:59:21 +0000 (10:59 +0200)
committerCarlos Maiolino <cem@kernel.org>
Fri, 9 Jun 2023 08:27:50 +0000 (10:27 +0200)
commite70bf9ba99546b22a362e58d968e838feb886a6a
treeeb82f0f789a9a79830450e58765f842778054527
parentfd1d74cd69383ec7baaee7ad2e5dbe47f0061bbf
xfs: complain about bad records in query_range helpers

Source kernel commit: ee12eaaa435a7be17152ac50943ee77249de624a

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>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_alloc.c
libxfs/xfs_ialloc.c
libxfs/xfs_refcount.c
libxfs/xfs_rmap.c