]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: factor out a xfs_growfs_check_rtgeom helper
authorChristoph Hellwig <hch@lst.de>
Wed, 7 Aug 2024 23:04:09 +0000 (16:04 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sat, 10 Aug 2024 06:57:24 +0000 (23:57 -0700)
commitd6ecf00c492b300cfd8317fa4b4b6fc31fb6ecea
tree356ae1cb2f03aa38a5bea16a80451a3b46117aea
parent904c7949c222dba8fbab3362e88d9f4f7a73e93e
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