bcachefs: Save key_cache_path in peek_slot()
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 10 Feb 2024 01:15:03 +0000 (20:15 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 14 Mar 2024 01:22:24 +0000 (21:22 -0400)
commit3254c1b0e5af7fcb90f2feb928e5313c8a53149e
tree17daa885aab1ade04c350b47a8f782a73239c63b
parent91dcad18d38849f1702e0d50f5598bb3614c8ff8
bcachefs: Save key_cache_path in peek_slot()

When bch2_btree_iter_peek_slot() clones the iterator to search for the
next key, and then discovers that the key from the cloned iterator is
the key we want to return - we also want to save the
iter->key_cache_path as well, for the update path.

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