]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: hoist the node iroot update code out of xfs_btree_new_iroot
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:21:45 +0000 (10:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:15:57 +0000 (09:15 -0800)
commitee20e655453724ad5061c85d663754f8eedf33b3
tree0f9e82e225f1c4366299181a9e56773143527190
parent40b2ce349baec111150aa42901d0cf4589b36911
xfs: hoist the node iroot update code out of xfs_btree_new_iroot

Source kernel commit: 7708951ae52132d3c4e05aee2e57d35f0d89bd49

In preparation for allowing records in an inode btree root, hoist the
code that copies keyptrs from an existing node root into a child block
to a separate function.  Note that the new function explicitly computes
the keys of the new child block and stores that in the root block; while
the bmap btree could rely on leaving the key alone, realtime rmap needs
to set the new high key.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_btree.c