]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: simplify xfs_btree_check_sblock_siblings
authorChristoph Hellwig <hch@lst.de>
Mon, 22 Apr 2024 17:01:06 +0000 (10:01 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:39 +0000 (11:37 -0700)
commita08765247ee9f27582c2a4b94c4cd30a36837940
treeb24a9b6608030150245f3e1d24e0c53d648f7272
parent1c3eaac0d11b71d05678b2558167db124fa2759d
xfs: simplify xfs_btree_check_sblock_siblings

Source kernel commit: 4bc94bf640e08cf970354036683ec143a7ae974e

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>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
libxfs/xfs_btree.c