Skip to content

Commit 4518e80

Browse files
author
Kent Overstreet
committed
bcachefs: Go rw if running any explicit recovery passes
This fixes a bug where we fail to start when upgrading/downgrading because we forgot we needed to go rw. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent 9abb6dd commit 4518e80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/recovery_passes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static int bch2_set_may_go_rw(struct bch_fs *c)
4444

4545
set_bit(BCH_FS_may_go_rw, &c->flags);
4646

47-
if (keys->nr || c->opts.fsck || !c->sb.clean)
47+
if (keys->nr || c->opts.fsck || !c->sb.clean || c->recovery_passes_explicit)
4848
return bch2_fs_read_write_early(c);
4949
return 0;
5050
}

0 commit comments

Comments
 (0)