]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: refactor xfs_calc_atomic_write_unit_max
authorChristoph Hellwig <hch@lst.de>
Mon, 7 Jul 2025 12:53:15 +0000 (14:53 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 8 Jul 2025 11:30:26 +0000 (13:30 +0200)
commite4a7a3f9b24336059c782eaa7ed5ef88a614a1cf
treea49c46c84b9a11eda379ee02d60782e43d6e51e8
parente74d1fa6a7d738c009a1dc7d739e64000c0d3d33
xfs: refactor xfs_calc_atomic_write_unit_max

This function and the helpers used by it duplicate the same logic for AGs
and RTGs.  Use the xfs_group_type enum to unify both variants.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_mount.c
fs/xfs/xfs_trace.h