]> 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>
Thu, 21 Nov 2024 00:24:45 +0000 (16:24 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 28 Nov 2024 02:33:20 +0000 (18:33 -0800)
commitd68b9c11a8f779260c735eae6fadf549d4ce6083
treef88bde14d10d717ba29322d20070c4b2e9cee36a
parent0e1c0f99fe4cbd3a1d7b9d816a62eeb4285078f3
xfs: make xfs_iroot_realloc take the new numrecs instead of deltas

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