aboutsummaryrefslogtreecommitdiff
path: root/fs/bcachefs/recovery.c
diff options
context:
space:
mode:
authorGravatar Kent Overstreet <kent.overstreet@linux.dev> 2023-11-13 19:57:09 -0500
committerGravatar Kent Overstreet <kent.overstreet@linux.dev> 2024-01-01 11:47:36 -0500
commit30418de09e6bda5478a6cfb7c1a54e128b7e2a22 (patch)
tree88832c5ba6b4aba2339a255489fc1aecbc4b7456 /fs/bcachefs/recovery.c
parentbcachefs: make RO snapshots actually RO (diff)
downloadlinux-30418de09e6bda5478a6cfb7c1a54e128b7e2a22.tar.gz
linux-30418de09e6bda5478a6cfb7c1a54e128b7e2a22.tar.bz2
linux-30418de09e6bda5478a6cfb7c1a54e128b7e2a22.zip
bcachefs: Flush fsck errors before running twice
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>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r--fs/bcachefs/recovery.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c
index 5cf7d0532002..70add8274a95 100644
--- a/fs/bcachefs/recovery.c
+++ b/fs/bcachefs/recovery.c
@@ -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);