bcachefs: Add a missing bch2_btree_path_traverse() call
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 9 Dec 2022 21:22:36 +0000 (16:22 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:47 +0000 (17:09 -0400)
commitef0732861a3af5bd1c5b08b6f64ca5b2cbee04bc
tree255c68a9ff5263a6a12d8739965184b23f4d1822
parent4f948723eda1ca44e470c31fcab4a453ed53aa13
bcachefs: Add a missing bch2_btree_path_traverse() call

bch2_btree_iter_peek_upto() in snapshots mode may need to keep a
btree_path for the insert position, not just the position of the key
we're returning. The code was incorrectly assuming this would be in the
same btree node - we were missing a bch2_btree_path_traverse() call.

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