xfs: simplify xfs_btree_check_sblock_siblings
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Feb 2024 20:40:52 +0000 (12:40 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:40:52 +0000 (12:40 -0800)
commit4bc94bf640e08cf970354036683ec143a7ae974e
treed2ce7f024bd23db30451a4a3fb2a59876cda3c1b
parentec793e690f801d97a7ae2a0d429fea1fee4d44aa
xfs: simplify xfs_btree_check_sblock_siblings

Stop using xfs_btree_check_sptr in xfs_btree_check_sblock_siblings,
as it only duplicates the xfs_verify_agbno call in the other leg of
if / else besides adding a tautological level check.

With this the cur and level arguments can be removed as they are
now unused.

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