bcachefs: Fix bch2_have_enough_devs() for BCH_SB_MEMBER_INVALID
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 12 Oct 2024 02:00:44 +0000 (22:00 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 12 Oct 2024 02:20:51 +0000 (22:20 -0400)
commit7d84d9f449f929a3b010cab04a0adc97c7853ab7
tree339d86d189f99b0f4f104bd798539265a3fb3e4c
parent3b80552e70573764bbf38b89c58749aef9dd8753
bcachefs: Fix bch2_have_enough_devs() for BCH_SB_MEMBER_INVALID

This fixes a kasan splat in the ec device removal tests.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/replicas.c