Skip to content

Commit e92e505

Browse files
author
Kent Overstreet
committed
bcachefs: Failed devices no longer require mounting in degraded mode
Signed-off-by: Kent Overstreet <[email protected]>
1 parent 805ddc2 commit e92e505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/replicas.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ bool bch2_have_enough_devs(struct bch_fs *c, struct bch_devs_mask devs,
800800
}
801801
rcu_read_unlock();
802802

803-
if (nr_failed == e->nr_devs)
803+
if (nr_online + nr_failed == e->nr_devs)
804804
continue;
805805

806806
if (nr_online < e->nr_required)

0 commit comments

Comments
 (0)