]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Simplify btree key cache fill path
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 8 Jun 2024 21:49:11 +0000 (17:49 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 14 Jul 2024 23:00:16 +0000 (19:00 -0400)
commitd2cb6b219d37284d78deeac1be8eb9d7670eebd1
tree5daaa10057b130fb2521a611edb82bf2a620d52e
parent39d5d8290cd4ae709b5c9625f991a2b028234315
bcachefs: Simplify btree key cache fill path

Don't allocate the new bkey_cached until after we've done the btree
lookup; this means we can kill bkey_cached.valid.

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