mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
bcachefs: Don't rewind recovery if not in recovery
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
367cad0966
commit
177ac4925f
|
|
@ -233,7 +233,8 @@ static int __bch2_run_explicit_recovery_pass(struct printbuf *out,
|
|||
|
||||
c->opts.recovery_passes |= BIT_ULL(pass);
|
||||
|
||||
if (c->curr_recovery_pass > pass) {
|
||||
if (test_bit(BCH_FS_in_recovery, &c->flags) &&
|
||||
c->curr_recovery_pass > pass) {
|
||||
c->next_recovery_pass = pass;
|
||||
c->recovery_passes_complete &= (1ULL << pass) >> 1;
|
||||
return -BCH_ERR_restart_recovery;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user