bcachefs: bch2_btree_key_cache_scan() doesn't need trylock
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 14 Oct 2022 10:48:23 +0000 (06:48 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:44 +0000 (17:09 -0400)
commit0196eb89abb9a794d1350684de8e73484f32a19a
tree53e8b3d68af4022a98c4607a003dd962c90f370f
parentd1b2c864e001c4a709ab040d299c553284bcdb2b
bcachefs: bch2_btree_key_cache_scan() doesn't need trylock

We don't actually allocate memory under the btree key cache lock - so
there's no recursion concerns, and the shrinker can just use
mutex_lock().

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