]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: standardize ondisk to incore conversion for rmap btrees
authorDarrick J. Wong <djwong@kernel.org>
Wed, 31 May 2023 08:58:21 +0000 (10:58 +0200)
committerCarlos Maiolino <cem@kernel.org>
Fri, 9 Jun 2023 08:27:50 +0000 (10:27 +0200)
commitfd1d74cd69383ec7baaee7ad2e5dbe47f0061bbf
treeb57334cdce0cb67943d61267e0ecfa6c978b8174
parent8d444a7a7dc866137e574e34c25febbd270121e8
xfs: standardize ondisk to incore conversion for rmap btrees

Source kernel commit: c4e34172da26cb57f56c471728853d3a428ec832

Create a xfs_rmap_check_irec function to detect corruption in btree
records.  Fix all xfs_rmap_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_rmap.c
libxfs/xfs_rmap.h