]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: hoist the node iroot update code out of xfs_btree_kill_iroot
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:22:14 +0000 (14:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 16 Jul 2024 22:49:18 +0000 (15:49 -0700)
commit9adf06ecf5552e5813a0d2bf2cf1585e9f95b986
tree4cc942e0faf386b3370b842e37d12f1d713ef612
parent4bd141afd23482b60fb622bbe79a9d356fb5297e
xfs: hoist the node iroot update code out of xfs_btree_kill_iroot

In preparation for allowing records in an inode btree root, hoist the
code that copies keyptrs from an existing node child into the root block
to a separate function.  Remove some unnecessary conditionals and clean
up a few function calls in the new function.  Note that this change
reorders the ->free_block call with respect to the change in bc_nlevels
to make it easier to support inode root leaf blocks in the next patch.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_btree.c