bcachefs: Fix ec_stripes_read()
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 12 Jul 2019 21:08:32 +0000 (17:08 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:24 +0000 (17:08 -0400)
commite222d206f298dc2c689d8f8787c929451d4f909b
treee93d5021ddbd7303aa162b2a97ea7b944c7479f5
parentf516c87272c98186f12768e9589664ce7a910bf4
bcachefs: Fix ec_stripes_read()

Change it to not mark keys that will be overwritten by keys in the
journal - this fixes a bug where we pop an assertion in
bucket_set_stripe() because of a stale pointer - because the stripe that
has the stale pointer has been deleted.

This code could be factored out and used elsewhere, at some point.

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