]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Fix bch2_btree_path_traverse_cached() when paths realloced
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 17 May 2025 22:37:02 +0000 (18:37 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 17 May 2025 22:46:17 +0000 (18:46 -0400)
commit49771a7578cdfb73ca957dc1ca9516872c8b406b
treef3c244082359b1c78d4b39a5c7fa5a3d9322c127
parent9c09e59cc55cdf7feb29971fd792fc1947010b79
bcachefs: Fix bch2_btree_path_traverse_cached() when paths realloced

btree_key_cache_fill() will allocate and traverse another path (for the
underlying btree), so we can't hold pointers to paths across a call - we
have to pass indices.

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