From 0806151913dff8547aae3713c1f793eb5d702b96 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 21 Jun 2021 16:28:43 -0400 Subject: bcachefs: Don't ratelimit certain fsck errors It's unhelpful if we see "Halting mark and sweep to start topology repair" but we don't see the error that triggered it. Signed-off-by: Kent Overstreet --- fs/bcachefs/error.c | 1 + 1 file changed, 1 insertion(+) (limited to 'fs/bcachefs/error.c') diff --git a/fs/bcachefs/error.c b/fs/bcachefs/error.c index 90c3b986c264..2cea694575e9 100644 --- a/fs/bcachefs/error.c +++ b/fs/bcachefs/error.c @@ -111,6 +111,7 @@ found: list_move(&s->list, &c->fsck_errors); s->nr++; if (c->opts.ratelimit_errors && + !(flags & FSCK_NO_RATELIMIT) && s->nr >= FSCK_ERR_RATELIMIT_NR) { if (s->nr == FSCK_ERR_RATELIMIT_NR) suppressing = true; -- cgit v1.2.3