bcachefs: Fix livelock calling bch2_mark_bkey_replicas()
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 3 Apr 2021 23:41:09 +0000 (19:41 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:59 +0000 (17:08 -0400)
commit9c2e624290f24c69c835bc82b1abe349810e338f
tree8fd8e882d2c314e00cc0c4f357f626e85418ee2c
parent2940295c97f49ffe0b2f564dea394094581073e7
bcachefs: Fix livelock calling bch2_mark_bkey_replicas()

The bug was that we were trying to find a replicas entry that wasn't
sorted - but, we can also simplify the code by not using
bch2_mark_bkey_replicas and instead ensuring the list of replicas
entries exists directly.

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