]> 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)
committerChristoph Hellwig <hch@lst.de>
Mon, 12 Aug 2024 07:35:28 +0000 (09:35 +0200)
commit3e97c466a384568b4f57d2936a4f7162960f1241
tree748513356b6b00c3fa3763cf8e64802440dde180
parent63415e72ed628eff520dc950091cc31bc9ebeef0
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