]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: factor out a xfs_validate_rt_geometry helper
authorChristoph Hellwig <hch@lst.de>
Mon, 21 Oct 2024 00:10:41 +0000 (17:10 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 31 Oct 2024 22:45:02 +0000 (15:45 -0700)
commitb03d9058b0306f93ecc84600c8d5dc31a18f1cac
tree402655a695876a6dd68d58e93ad5352c2109b959
parent7220f58bed911926e9e357415c7325e1e6c75650
xfs: factor out a xfs_validate_rt_geometry helper

Source kernel commit: 6529eef810e2ded0e540162273ee31a41314ec4e

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>
libxfs/xfs_sb.c
libxfs/xfs_sb.h