bcachefs: Fix bch2_journal_keys_peek_upto()
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 9 Dec 2022 19:09:14 +0000 (14:09 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:47 +0000 (17:09 -0400)
commit4f948723eda1ca44e470c31fcab4a453ed53aa13
tree02e7115b493981b4c197a552d0e6f4f447e6b4ad
parentac9fa4bdc79bb54e639f5dc262f9f5976a5ccd21
bcachefs: Fix bch2_journal_keys_peek_upto()

bch2_journal_keys_peek_upto() was comparing against btree_id & level
incorrectly - fix this by using __journal_key_cmp().

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