bcachefs: btree_path_down() optimization
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 15 Aug 2022 22:55:20 +0000 (18:55 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:38 +0000 (17:09 -0400)
commit223b560e02098502b4e1c87aa9767620852d1bfd
treeac8bcfdc305401e8643acc3cfe7909e87b30bf86
parentbbf4288401519a7554201caf9b945c79f29753b3
bcachefs: btree_path_down() optimization

We should be calling btree_node_mem_ptr_set() before path_level_init(),
since we already touched the key that btree_node_mem_ptr_set() will
modify and path_level_init() will be doing the lookup in the child btree
node we're recursing to.

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