]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: factor out a xfs_growfs_check_rtgeom helper
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Nov 2024 04:19:13 +0000 (20:19 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:38 +0000 (13:38 -0800)
commitbde86b42d2825db42749ad1822ff224b4c55aa4c
tree9ae43bde917ba1ee45ae50b320c6fa0fc44d3e4f
parentfc233f1fb0588a3e1a06cd7389f1ca6310548fa5
xfs: factor out a xfs_growfs_check_rtgeom helper

Split the check that the rtsummary fits into the log into a separate
helper, and use xfs_growfs_rt_alloc_fake_mount to calculate the new RT
geometry.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
[djwong: avoid division for the 0-rtx growfs check]
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_rtalloc.c