]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: make xfs_iroot_realloc take the new numrecs instead of deltas
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:21:45 +0000 (10:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:15:57 +0000 (09:15 -0800)
commitac52a577dda282aee198449b3b3e65242e9a07fc
tree9a4820ee05ad934eb66a676d4f8970b1fba8e49a
parent5b8ba0530d84fa0e42b3d1236222bec3d3e345b0
xfs: make xfs_iroot_realloc take the new numrecs instead of deltas

Source kernel commit: 6a92924275ecdd768c8105f8975b971300c5ba7d

Change the calling signature of xfs_iroot_realloc to take the ifork and
the new number of records in the btree block, not a diff against the
current number.  This will make the callsites easier to understand.

Note that this function is misnamed because it is very specific to the
single type of inode-rooted btree supported.  This will be addressed in
a subsequent patch.

Return the new btree root to reduce the amount of code clutter.

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