bcachefs: Don't BUG() in update_replicas
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 21 Apr 2021 22:08:39 +0000 (18:08 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:01 +0000 (17:09 -0400)
commiteb365fbc333519651bed300eb866f26dbc1efd05
treea79177519a4028397667dbb380ca8cf671c2c7cc
parentf09517fc5136ad2ea67b6f332ed2445f053ccfe6
bcachefs: Don't BUG() in update_replicas

Apparently, we have a bug where in mark and sweep while accounting for a
key, a replicas entry isn't found. Change the code to print out the key
we couldn't mark and halt instead of a BUG_ON().

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