]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: initialize btree blocks using btree_ops structure
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 17:00:58 +0000 (10:00 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:37 +0000 (11:37 -0700)
commit8016d20c04dbf1f14822808596b605339e3b2935
tree783900da51e2ddf8873c4e18e758be1327934baf
parent1177835067a1c10b151e042d26e0cbea4c82bb6d
xfs: initialize btree blocks using btree_ops structure

Source kernel commit: c87e3bf7802477cb4500dfafe0ab039313aa2dda

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>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
libxfs/xfs_ag.c
libxfs/xfs_ag.h
libxfs/xfs_bmap.c
libxfs/xfs_bmap_btree.c
libxfs/xfs_bmap_btree.h
libxfs/xfs_btree.c
libxfs/xfs_btree.h
libxfs/xfs_btree_staging.c