]> 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>
Fri, 30 Aug 2024 03:08:34 +0000 (20:08 -0700)
committerChristoph Hellwig <hch@lst.de>
Sun, 22 Sep 2024 08:01:33 +0000 (10:01 +0200)
commite227453b7ae49de9e70786ef7f8b3c024398cf37
tree34e0ad90b326160a47213b7a8fc8ddf8420c958c
parent5512664d7a6c73bd5fa5435d1533f679a244571d
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