xfs: remove xfs_btnum_t
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Feb 2024 20:40:51 +0000 (12:40 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:40:51 +0000 (12:40 -0800)
commitec793e690f801d97a7ae2a0d429fea1fee4d44aa
tree84a9299e3f64721debd132b53a5ea0b324a5d219
parentfbeef4e061ab28bf556af4ee2a5a9848dc4616c5
xfs: remove xfs_btnum_t

The last checks for bc_btnum can be replaced with helpers that check
the btree ops.  This allows adding new btrees to XFS without having
to update a global enum.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
[djwong: complete the ops predicates]
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
16 files changed:
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc_btree.c
fs/xfs/libxfs/xfs_bmap_btree.c
fs/xfs/libxfs/xfs_btree.c
fs/xfs/libxfs/xfs_btree.h
fs/xfs/libxfs/xfs_ialloc.c
fs/xfs/libxfs/xfs_ialloc_btree.c
fs/xfs/libxfs/xfs_refcount_btree.c
fs/xfs/libxfs/xfs_rmap_btree.c
fs/xfs/libxfs/xfs_shared.h
fs/xfs/libxfs/xfs_types.h
fs/xfs/scrub/btree.c
fs/xfs/scrub/ialloc.c
fs/xfs/scrub/trace.h
fs/xfs/xfs_health.c
fs/xfs/xfs_trace.h