]> 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>
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)
commitc2508a76e1cfe64db9fb328d1eb24053393b65ce
tree51b27da98c87596b39cdf57fdbc5801d00780363
parent8542ba7134b5589fd8459361738be5f69b3b14e2
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