bcachefs: Journal keys overlay fixes
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 23 Oct 2022 21:37:23 +0000 (17:37 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:45 +0000 (17:09 -0400)
commitc167f9e54100179a009051ad6eac1dfb0bcd21f6
treeb2689f7103c5b36ccc82947b398e4ed71638c182
parent1f69368c5cfce6770d101aaeff46ef22d22de07c
bcachefs: Journal keys overlay fixes

 - In the btree iterator code that overlays keys from the journal, we
   were incorrectly specifying level=0 instead of the btree_path's
   current level in a few places
 - When we didn't do journal replay, we shouldn't free the journal keys:
   this fixes cmd_list and cmd_dump, which run in norecovery mode

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