Skip to content

Commit cade003

Browse files
author
Kent Overstreet
committed
bcachefs: Fix opts.recovery_pass_last
This was lost in the giant recovery pass rework - but it's used heavily by bcachefs subcommand utilities. Signed-off-by: Kent Overstreet <[email protected]>
1 parent f351d91 commit cade003

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/bcachefs/recovery_passes.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,9 @@ int bch2_run_recovery_passes(struct bch_fs *c, enum bch_recovery_pass from)
525525
c->opts.recovery_passes |
526526
c->sb.recovery_passes_required;
527527

528+
if (c->opts.recovery_pass_last)
529+
passes &= BIT_ULL(c->opts.recovery_pass_last + 1) - 1;
530+
528531
/*
529532
* We can't allow set_may_go_rw to be excluded; that would cause us to
530533
* use the journal replay keys for updates where it's not expected.

0 commit comments

Comments
 (0)