bcachefs: Fix for running in degraded mode
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
db636adb2e
commit
57cb2142ed
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user