]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: standardize ondisk to incore conversion for refcount btrees
authorDarrick J. Wong <djwong@kernel.org>
Tue, 30 May 2023 11:14:58 +0000 (13:14 +0200)
committerCarlos Maiolino <cem@kernel.org>
Fri, 9 Jun 2023 08:27:50 +0000 (10:27 +0200)
commit03d1a871946af6c3db5017bedb485e2e7db1f085
tree53a5accccf02eb9d687138d4500bcc9a6293e692
parent349aa6876786cbcf9faa3aed3c577f634c03a8b0
xfs: standardize ondisk to incore conversion for refcount btrees

Source kernel commit: 2b30cc0bf0589d1ea0506c019b9b81de77535c87

Create a xfs_refcount_check_irec function to detect corruption in btree
records.  Fix all xfs_refcount_btrec_to_irec callsites to call the new
helper and bubble up corruption reports.

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_refcount.c
libxfs/xfs_refcount.h