mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue