]> 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>
Tue, 9 Jan 2024 17:40:07 +0000 (09:40 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 10 Apr 2024 00:21:41 +0000 (17:21 -0700)
commit8542ba7134b5589fd8459361738be5f69b3b14e2
tree6988a72377b4ba421b27cefa072ce670c12372d0
parenta4e9e1ba03cf2a7f06d46eb297ce1d52d69760fc
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