bcachefs: Failed devices no longer require mounting in degraded mode
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 7 Sep 2024 15:45:21 +0000 (11:45 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Sep 2024 15:39:48 +0000 (11:39 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/replicas.c

index 226b41baea2f024c9cc88921cc5e40a546080519..998c0bd068023a9f530984950c56dad2e87fec7c 100644 (file)
@@ -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)