xfs: store the btree pointer length in struct xfs_btree_ops
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:35:36 +0000 (12:35 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:35:36 +0000 (12:35 -0800)
commit1a9d26291c68fbb8f8d24f9f694b32223a072745
treeb5cda76c7f06835e311cbe42ccc20d77e09c841f
parent186f20c003199824eb3eb3b78e4eb7c2535a8ffc
xfs: store the btree pointer length in struct xfs_btree_ops

Make the pointer length an explicit field in the btree operations
structure so that the next patch (which introduces an explicit btree
type enum) doesn't have to play a bunch of awkward games with inferring
the pointer length from the enumeration.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
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_btree.c
fs/xfs/libxfs/xfs_refcount_btree.c
fs/xfs/libxfs/xfs_rmap_btree.c
fs/xfs/scrub/btree.c
fs/xfs/scrub/newbt.c
fs/xfs/xfs_trace.h