bcachefs: Don't BUG_ON() btree topology error
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 23 Apr 2021 20:05:49 +0000 (16:05 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:01 +0000 (17:09 -0400)
commit537c32f5212396751bf39b10d71af60af32dc257
tree03e7b6dfdf3fd99b744e891508309198046c6bd3
parent1c8441bea5366ec1e4f077ab675b49a603d7cad8
bcachefs: Don't BUG_ON() btree topology error

This replaces an assertion in the btree merge path with a
bch2_inconsistent_error() - fsck will fix it.

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