bcachefs: Flush fsck errors before running twice
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 14 Nov 2023 00:57:09 +0000 (19:57 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:36 +0000 (11:47 -0500)
It's confusing if we run fsck a second time (in debug mode, to verify
the second run is clean), but errors are still ratelimited from the
first run.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/recovery.c

index 5cf7d05..70add82 100644 (file)
@@ -924,6 +924,8 @@ use_clean:
            test_bit(BCH_FS_ERRORS_FIXED, &c->flags) &&
            !test_bit(BCH_FS_ERRORS_NOT_FIXED, &c->flags) &&
            !test_bit(BCH_FS_ERROR, &c->flags)) {
+               bch2_flush_fsck_errs(c);
+
                bch_info(c, "Fixed errors, running fsck a second time to verify fs is clean");
                clear_bit(BCH_FS_ERRORS_FIXED, &c->flags);