bcachefs: Change journal_io.c assertion to error message
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 21 Mar 2022 00:12:53 +0000 (20:12 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:28 +0000 (17:09 -0400)
commitb0be2fcfb425022025203c27ed75a20db8c6feda
treeaa2af905ab1256f5ac46dc58410a606cefe8691a
parent7a6f4411aeaae888a7b2880f0c046f9efb0d83cc
bcachefs: Change journal_io.c assertion to error message

Something funny is going on with the new code for restoring the journal
write point, and it's hard to reproduce.

We do want to debug this because resuming writing to the journal in the
wrong spot could be something serious. For now, replace the assertion
with an error message and revert to old behaviour when it happens.

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