bcachefs: Fix bch2_mark_update()
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 29 Oct 2021 22:21:05 +0000 (18:21 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:15 +0000 (17:09 -0400)
commit37f72492f401671f1f773cc62dddf742e7fc553b
tree49572cf75962f9943856e6d7a90f0d27980dc98e
parentfae1157d184084f1716a10273423f8e949d8471f
bcachefs: Fix bch2_mark_update()

When the old or new key doesn't exist, we should still pass in a deleted
key with the correct pos. This fixes a bug in the ec code, when
bch2_mark_stripe() was looking up the wrong in-memory stripe.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/buckets.c