xfs: remove the which variable in xchk_iallocbt
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Feb 2024 20:40:48 +0000 (12:40 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:40:48 +0000 (12:40 -0800)
commitc81a01a74a6769569650f4e42203ce3147b24f0a
tree57022b6833269f9b1c961285b12e37f1b6f48023
parent4bfb028a4c00d0a079a625d7867325efb3c37de2
xfs: remove the which variable in xchk_iallocbt

The which variable that holds a btree number is passed to two functions
that ignore it and used in a single check that can check the sm_type
as well.  Remove it to unclutter the 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/scrub/ialloc.c