bcachefs: Replace a BUG_ON() with fatal error
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 13 May 2023 00:28:54 +0000 (20:28 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:01 +0000 (17:10 -0400)
commit4a2e5d7ba5b8208ea5a20eeb274b2b0333ab5dcf
tree29fb50dd654c7a4582175cfda1c32075a2164794
parent92e637cef4fc9380363b425de740827d7c492219
bcachefs: Replace a BUG_ON() with fatal error

A user hit this BUG_ON() - it's unclear how it happened, so replace it
with a fatal error that will cause us to go read only, and print out
more information.

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