xfs: factor out a xfs_validate_rt_geometry helper
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Aug 2024 22:36:51 +0000 (15:36 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 1 Sep 2024 15:58:19 +0000 (08:58 -0700)
commit6529eef810e2ded0e540162273ee31a41314ec4e
treeb7a7742a696e5de461de69a4e8ee0ff6c2ae3d53
parent021d9c107e29a598e51fb66a54b22e5416125408
xfs: factor out a xfs_validate_rt_geometry helper

Split the RT geometry validation in the early mount code into a
helper than can be reused by repair (from which this code was
apparently originally stolen anyway).

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
[djwong: u64 return value for calc_rbmblocks]
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_sb.c
fs/xfs/libxfs/xfs_sb.h