]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: refactor the inode fork memory allocation functions
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:21:44 +0000 (10:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:15:57 +0000 (09:15 -0800)
commit5b8ba0530d84fa0e42b3d1236222bec3d3e345b0
tree713a6db05040903f63b07dfdf695c550d8bd2e12
parent8887c70c3eeae1045fa01877e4ec08ed5d6ccf4e
xfs: refactor the inode fork memory allocation functions

Source kernel commit: 6c1c55ac3c0512262817a088e805d99aad4c0867

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>
libxfs/xfs_inode_fork.c
libxfs/xfs_inode_fork.h