summaryrefslogtreecommitdiff
path: root/libbcachefs/recovery.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-11-29 17:00:30 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-11-29 17:00:30 -0500
commit89b361f24a433a4a55e0032eca4e43045ea3f0d0 (patch)
treec405bc713dae3118593e2299de7fe18d7a291745 /libbcachefs/recovery.c
parent1dc5842111fa587eb58112f4ae3c2048b1c1a006 (diff)
Update bcachefs sources to c3e4d892b77b mean and variance: Promote to lib/math
Diffstat (limited to 'libbcachefs/recovery.c')
-rw-r--r--libbcachefs/recovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbcachefs/recovery.c b/libbcachefs/recovery.c
index 3f8c3ba1..98f1454c 100644
--- a/libbcachefs/recovery.c
+++ b/libbcachefs/recovery.c
@@ -531,7 +531,7 @@ static int bch2_set_may_go_rw(struct bch_fs *c)
keys->gap = keys->nr;
set_bit(BCH_FS_may_go_rw, &c->flags);
- if (keys->nr)
+ if (keys->nr || c->opts.fsck)
return bch2_fs_read_write_early(c);
return 0;
}