]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: add a xfs_groups_to_rfsbs helper
authorChristoph Hellwig <hch@lst.de>
Mon, 3 Nov 2025 10:14:09 +0000 (05:14 -0500)
committerCarlos Maiolino <cem@kernel.org>
Tue, 11 Nov 2025 10:38:05 +0000 (11:38 +0100)
commit0ec73eb3f12350799c4b3fb764225f6e38b42d1e
treebce2b6f77c4e1055ab3c84f96f2104a940fd56c8
parentd8a823c6f04ef03e3bd7249d2e796da903e7238d
xfs: add a xfs_groups_to_rfsbs helper

Plus a rtgroup wrapper and use that to avoid overflows when converting
zone/rtg counts to block counts.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/libxfs/xfs_group.h
fs/xfs/libxfs/xfs_rtgroup.h
fs/xfs/xfs_zone_gc.c
fs/xfs/xfs_zone_space_resv.c