bcachefs: Fix for running in degraded mode

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2018-12-06 09:58:03 -05:00 committed by Kent Overstreet
parent db636adb2e
commit 57cb2142ed

View File

@ -1036,7 +1036,7 @@ done:
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)