]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: refactor the inode fork memory allocation functions
authorDarrick J. Wong <djwong@kernel.org>
Thu, 15 Aug 2024 18:48:30 +0000 (11:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 9 Oct 2024 23:29:16 +0000 (16:29 -0700)
commit3965c45fc08d9da817db8e409ee4cb28ca0217ee
tree7f9875ac0b6c200a4a71761875156a38ebd87114
parentc257f47769e1663d6e4faa1208e5325a901b1c85
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>
libxfs/xfs_inode_fork.c
libxfs/xfs_inode_fork.h