File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -393,16 +393,22 @@ int __bch2_fsck_err(struct bch_fs *c,
393
393
!(flags & FSCK_CAN_IGNORE )))
394
394
ret = - BCH_ERR_fsck_errors_not_fixed ;
395
395
396
+ bool exiting =
397
+ test_bit (BCH_FS_fsck_running , & c -> flags ) &&
398
+ (ret != - BCH_ERR_fsck_fix &&
399
+ ret != - BCH_ERR_fsck_ignore );
400
+
401
+ if (exiting )
402
+ print = true;
403
+
396
404
if (print ) {
397
405
if (bch2_fs_stdio_redirect (c ))
398
406
bch2_print (c , "%s\n" , out -> buf );
399
407
else
400
408
bch2_print_string_as_lines (KERN_ERR , out -> buf );
401
409
}
402
410
403
- if (test_bit (BCH_FS_fsck_running , & c -> flags ) &&
404
- (ret != - BCH_ERR_fsck_fix &&
405
- ret != - BCH_ERR_fsck_ignore ))
411
+ if (exiting )
406
412
bch_err (c , "Unable to continue, halting" );
407
413
else if (suppressing )
408
414
bch_err (c , "Ratelimiting new instances of previous error" );
You can’t perform that action at this time.
0 commit comments