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

Source kernel commit: 366a0b8d49c3a7edcb5331f254af195716ba4bdf

Create a xfs_inobt_check_irec function to detect corruption in btree
records.  Fix all xfs_inobt_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_ialloc.c
libxfs/xfs_ialloc.h
libxfs/xfs_ialloc_btree.c
libxfs/xfs_ialloc_btree.h