xfs: initialize btree blocks using btree_ops structure
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:35:16 +0000 (12:35 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:35:16 +0000 (12:35 -0800)
commitc87e3bf7802477cb4500dfafe0ab039313aa2dda
tree3c448bb0dee9e7116fd683def5e1ab58e5674508
parentd8d6df4253adcdb5862a9410d962e9168b973c88
xfs: initialize btree blocks using btree_ops structure

Notice now that the btree ops structure encodes btree geometry flags and
the magic number through the buffer ops.  Refactor the btree block
initialization functions to use the btree ops so that we no longer have
to open code all that.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_ag.c
fs/xfs/libxfs/xfs_ag.h
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap_btree.c
fs/xfs/libxfs/xfs_bmap_btree.h
fs/xfs/libxfs/xfs_btree.c
fs/xfs/libxfs/xfs_btree.h
fs/xfs/libxfs/xfs_btree_staging.c