xfs: refactor repair forcing tests into a repair.c helper
authorDarrick J. Wong <djwong@kernel.org>
Fri, 15 Dec 2023 18:03:39 +0000 (10:03 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 15 Dec 2023 18:03:39 +0000 (10:03 -0800)
commit48a72f60861f790dd7c2db04d69c3a1ce606984e
treef74e39bb8710f48c1109f9682766787ff5b4798c
parent8f71bede8efd820627ac05c19eac2758214bc896
xfs: refactor repair forcing tests into a repair.c helper

There are a couple of conditions that userspace can set to force repairs
of metadata.  These really belong in the repair code and not open-coded
into the check code, so refactor them into a helper.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/repair.c
fs/xfs/scrub/repair.h
fs/xfs/scrub/scrub.c