bcachefs: bch2_btree_path_peek_slot_exact()
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 20 Dec 2022 16:13:19 +0000 (11:13 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:47 +0000 (17:09 -0400)
commita52a4da4fd07ad32f7beceaa61672e74efd7f03a
tree01178e12f9d2f6275fad13e23b2646e39b978ebf
parent52bf51b91f5d19ab0555b901023def61d60f1a97
bcachefs: bch2_btree_path_peek_slot_exact()

When we start using the key cache for inodes again, it'll be possible
for bch2_btree_path_peek_slot() to return a key in a different snapshot
with a key cache path.

This isn't what we want when triggers are checking what they're
overwriting, so introduce a new helper for the commit path.

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