]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: consolidate btree block verification
authorChristoph Hellwig <hch@lst.de>
Mon, 22 Apr 2024 17:01:08 +0000 (10:01 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:39 +0000 (11:37 -0700)
commita8b77935ddc37d28e221d9da955e3b6a88895318
tree0fc19c36708e9463f094ebbec0891cbc935271b4
parent694ce31a1c7c7612654e35c1ec6718bb8f77fc75
xfs: consolidate btree block verification

Source kernel commit: 4ce0c711d9ab3a435bc605cd2f36a3f6b4e12c05

Add a __xfs_btree_check_block helper that can be called by the scrub code
to validate a btree block of any form, and move the duplicate error
handling code from xfs_btree_check_sblock and xfs_btree_check_lblock into
xfs_btree_check_block and thus remove these two helpers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
libxfs/xfs_btree.c
libxfs/xfs_btree.h