]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: hoist the node iroot update code out of xfs_btree_new_iroot
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:20:16 +0000 (16:20 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 23 Dec 2024 21:06:02 +0000 (13:06 -0800)
commit7708951ae52132d3c4e05aee2e57d35f0d89bd49
tree8a6bf0b5eb3c60a6486af85fc50745f0b12dd10e
parentc914081775e2e39e4afa9b4bb9e5c98202110f51
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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_btree.c