]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: hoist the node iroot update code out of xfs_btree_new_iroot
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:22:14 +0000 (14:22 -0700)
committerChristoph Hellwig <hch@lst.de>
Sun, 11 Aug 2024 06:35:54 +0000 (08:35 +0200)
commit0d6674d8800bdf6509b6233c47c491007f1c49eb
tree3c18d93bab06e7f164db60d0846be1b21c315610
parent302d8ea5a9bdb91a2db10aba194453e5ecd68405
xfs: hoist the node iroot update code out of xfs_btree_new_iroot

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>
libxfs/xfs_btree.c