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

Source kernel commit: 8b8ada973cacff338a0e817a97dd0afa301798c0

Stop using xfs_btree_check_lptr in xfs_btree_check_lblock_siblings,
as it only duplicates the xfs_verify_fsbno 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