bcachefs: Fix journal entry repair code
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 16 Nov 2020 17:22:30 +0000 (12:22 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:47 +0000 (17:08 -0400)
commit4d54337cdbf3baf8115bf8c1ed61bf44b3932a6d
tree6b10664abf1653d7d0f7cc2755fbf94794cac3ef
parent628a3ad2c2dfd8e89ac9ab9fc3682f8e2ce504d8
bcachefs: Fix journal entry repair code

When we detect bad keys in the journal that have to be dropped, the flow
control was wrong - we ended up not checking the next key in that entry.
Oops.

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