diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-09-07 11:45:21 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-09-21 11:39:48 -0400 |
commit | e92e5056e4f75c1990d54ea5bc03360fca55b891 (patch) | |
tree | 59b899d5bf03f44edeb29c13af36aea168471498 | |
parent | 805ddc204287e74ebd2640c0f088e04f94e98b48 (diff) |
bcachefs: Failed devices no longer require mounting in degraded mode
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/replicas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/replicas.c b/fs/bcachefs/replicas.c index 226b41baea2f..998c0bd06802 100644 --- a/fs/bcachefs/replicas.c +++ b/fs/bcachefs/replicas.c @@ -800,7 +800,7 @@ bool bch2_have_enough_devs(struct bch_fs *c, struct bch_devs_mask devs, } rcu_read_unlock(); - if (nr_failed == e->nr_devs) + if (nr_online + nr_failed == e->nr_devs) continue; if (nr_online < e->nr_required) |