]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub: split up the mustfix repairs and difficulty assessment functions
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:23:04 +0000 (16:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:07 +0000 (17:01 -0700)
commitf6b0923abf44f1617bfb35d239f17727d2f3b98c
tree303a485ca96c3f582faa8d170ddcb14b7d318987
parenta4059d8d44601dc606472f6179d7867d06e500e0
xfs_scrub: split up the mustfix repairs and difficulty assessment functions

Currently, action_list_find_mustfix does two things -- it figures out
which repairs must be tried during phase 2 to enable the inode scan in
phase 3; and it figures out if xfs_scrub should warn about secondary and
primary metadata corruption that might make repair difficult.

Split these into separate functions to make each more coherent.  A long
time from now we'll need this to enable warnings about difficult rt
repairs, but for now this is merely a code cleanup.

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