bcachefs: Fix validation of replicas entries
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 20 Sep 2019 18:28:35 +0000 (14:28 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:27 +0000 (17:08 -0400)
commiteab32c8e4e8a3addcea0884acdb5bbe4cdb66c5a
treef9a04b86db7c4101a69c65468a20d1c2d1332b6e
parent5f786787adf57c7597925a9df9897238cb3bc60e
bcachefs: Fix validation of replicas entries

When an extent is erasure coded, we need to record a replicas entry to
indicate that data is present on the devices that extent has pointers to
- but nr_required should be 0, because it's erasure coded.

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