bcachefs: Convert journal BUG_ON() to a warning
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 13 Nov 2021 22:53:55 +0000 (17:53 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:17 +0000 (17:09 -0400)
commit531b69e9afed954156b193264daf32c067454952
tree2fa5fe931f20a5aef29d85d256de8e0fc67331d4
parent61d876c25d65c6732f1db1e7611a158fc2c55be3
bcachefs: Convert journal BUG_ON() to a warning

It's definitely indicative of a bug if we request to flush a journal
sequence number that hasn't happened yet, but it's more useful if we
warn and print out the relevant sequence numbers instead of just dying.

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