xfs: consolidate btree ptr checking
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Feb 2024 20:40:54 +0000 (12:40 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:40:54 +0000 (12:40 -0800)
commit57982d6c835a71da5c66e6090680de1adf6e736a
tree157c8a269cc3e8b84b3089690922c32e7c25cb3e
parentfb0793f206701a68f8588a09bf32f7cf44878ea3
xfs: consolidate btree ptr checking

Merge xfs_btree_check_sptr and xfs_btree_check_lptr into a single
__xfs_btree_check_ptr that can be shared between xfs_btree_check_ptr
and the scrub code.

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>
fs/xfs/libxfs/xfs_btree.c
fs/xfs/libxfs/xfs_btree.h
fs/xfs/scrub/btree.c