xfs: refactor the inode fork memory allocation functions
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:20:13 +0000 (16:20 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 23 Dec 2024 21:06:02 +0000 (13:06 -0800)
commit6c1c55ac3c0512262817a088e805d99aad4c0867
treefc895a5adb8087f842c7e32acb9c232d5a70ec93
parent4f13f0a3fc6ad193e4d144a5e001b7b8f1fc4b7f
xfs: refactor the inode fork memory allocation functions

Hoist the code that allocates, frees, and reallocates if_broot into a
single xfs_iroot_krealloc function.  Eventually we're going to push
xfs_iroot_realloc into the btree ops structure to handle multiple
inode-rooted btrees, but first let's separate out the bits that should
stay in xfs_inode_fork.c.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_inode_fork.c
fs/xfs/libxfs/xfs_inode_fork.h