mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 11:40:19 -04:00
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 <kent.overstreet@linux.dev>
This commit is contained in:
@@ -525,6 +525,9 @@ int bch2_run_recovery_passes(struct bch_fs *c, enum bch_recovery_pass from)
|
||||
c->opts.recovery_passes |
|
||||
c->sb.recovery_passes_required;
|
||||
|
||||
if (c->opts.recovery_pass_last)
|
||||
passes &= BIT_ULL(c->opts.recovery_pass_last + 1) - 1;
|
||||
|
||||
/*
|
||||
* We can't allow set_may_go_rw to be excluded; that would cause us to
|
||||
* use the journal replay keys for updates where it's not expected.
|
||||
|
||||
Reference in New Issue
Block a user