]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: refactor xfs_rtsummary_blockcount
authorChristoph Hellwig <hch@lst.de>
Mon, 25 Nov 2024 21:14:20 +0000 (13:14 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:29 +0000 (18:01 -0800)
commit3241cd2c17ae9692301ad844152815a2f1409fed
tree59431c5cb1d27aa4e4a9a4de2054095a48f5d3f8
parentb3d80952d04d4f06fb90ddbd7b79da69219237c2
xfs: refactor xfs_rtsummary_blockcount

Source kernel commit: f8c5a8415f6e23fa5b6301635d8b451627efae1c

Make xfs_rtsummary_blockcount take all the required information from
the mount structure and return the number of summary levels from it
as well.  This cleans up many of the callers and prepares for making the
rtsummary files per-rtgroup where they need to look at different value.

This means we recalculate some values in some callers, but as all these
calculations are outside the fast path and cheap, which seems like a
price worth paying.

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