Commit 57cb2142 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Fix for running in degraded mode

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent db636adb
......@@ -1036,7 +1036,7 @@ static int journal_write_alloc(struct journal *j, struct journal_buf *w,
spin_unlock(&j->lock);
rcu_read_unlock();
return replicas >= replicas_want ? 0 : -EROFS;
return replicas >= c->opts.metadata_replicas_required ? 0 : -EROFS;
}
static void journal_write_compact(struct jset *jset)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment