]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: refactor the inode fork memory allocation functions
authorDarrick J. Wong <djwong@kernel.org>
Mon, 23 Sep 2024 20:41:45 +0000 (13:41 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 Oct 2024 13:55:44 +0000 (15:55 +0200)
commit1ffb23ed55d7875699f2a558d89ff4427cec030c
tree9fe1b8aee3486ea9c5e027785cb5dd01a2ecd8bf
parente86c22a87bbd721eb0f1a7d4ba8322455bb998ee
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>
fs/xfs/libxfs/xfs_inode_fork.c
fs/xfs/libxfs/xfs_inode_fork.h