]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: hoist the node iroot update code out of xfs_btree_new_iroot
authorDarrick J. Wong <djwong@kernel.org>
Wed, 29 May 2024 04:11:31 +0000 (21:11 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 31 Jul 2024 01:53:01 +0000 (18:53 -0700)
commit6aafa6fc92cc6ffdbdc20f1daaf0b093cbb421d2
tree07f4b3c79a1d2c8602422bfa91585622404dd4f3
parenta4e64f1890a3ecb73465c44a7229fd11afbed5ba
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>
fs/xfs/libxfs/xfs_btree.c