]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: make xfs_iroot_realloc take the new numrecs instead of deltas
authorDarrick J. Wong <djwong@kernel.org>
Mon, 23 Sep 2024 20:41:45 +0000 (13:41 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 2 Oct 2024 01:10:53 +0000 (18:10 -0700)
commit6e1368addbb4552b4d667146e23650d37f16d91f
tree0e713068b90aec8e7d625e30ce445583f9593ef9
parent46d99406707dbec0384c07fce922b200ca3852b2
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>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_btree.c
fs/xfs/libxfs/xfs_inode_fork.c
fs/xfs/libxfs/xfs_inode_fork.h
fs/xfs/xfs_inode.h