bcachefs: Cached pointers should not be erasure coded
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 22 Feb 2023 00:22:44 +0000 (19:22 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:54 +0000 (17:09 -0400)
commitc9163bb03b81e465019cf56d2edf47b70798e3ee
treefa4e29fa781b97bc47f7038c9d192f210f3b72bb
parente094beccc139b1d2975563cdba0b661d14e6e06b
bcachefs: Cached pointers should not be erasure coded

There's no reason to erasure code cached pointers: we'll always have
another copy, and it'll be cheaper to read the other copy than do a
reconstruct read. And erasure coded cached pointers would add
complications that we'd rather not have to deal with, so let's make sure
to disallow them.

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