]> 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>
Thu, 15 Aug 2024 18:56:35 +0000 (11:56 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 16 Aug 2024 21:57:38 +0000 (14:57 -0700)
commit0c79d89e99f7b3d051163066b79bd1867466f75c
tree60c33eb868b7efd4e00ee1bd177acf8536bccf5c
parent1e0b80591e3f713d1909194226ffc41447ea6a56
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