bcachefs: Change a BUG_ON() to a fatal error
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 30 Nov 2020 07:07:38 +0000 (02:07 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:48 +0000 (17:08 -0400)
commitd7b04163c2e6fbfb3befc047586c4c85069e8db3
treeee9b54a5818712081971332177b76a6c8e27b22e
parentd0022290b81c15db3c81936cdb254663598ef35f
bcachefs: Change a BUG_ON() to a fatal error

In the btree key cache code, failing to flush a dirty key is a serious
error, but it doesn't need to be a BUG_ON(), we can stop the filesystem
instead.

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