Skip to content

Commit e8c7692

Browse files
author
Kent Overstreet
committed
bcachefs: print explicit recovery pass message only once
Signed-off-by: Kent Overstreet <[email protected]>
1 parent 85c6db9 commit e8c7692

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/bcachefs/recovery.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ extern const char * const bch2_recovery_passes[];
1010
static inline int bch2_run_explicit_recovery_pass(struct bch_fs *c,
1111
enum bch_recovery_pass pass)
1212
{
13+
if (c->recovery_passes_explicit & BIT_ULL(pass))
14+
return 0;
15+
1316
bch_info(c, "running explicit recovery pass %s (%u), currently at %s (%u)",
1417
bch2_recovery_passes[pass], pass,
1518
bch2_recovery_passes[c->curr_recovery_pass], c->curr_recovery_pass);

0 commit comments

Comments
 (0)