bcachefs: Btree key cache improvements
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 15 Oct 2022 04:47:21 +0000 (00:47 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:44 +0000 (17:09 -0400)
commitfe5b37f699c02f90505933959797f70645ba95fb
treeb21a9363a089f86460913de19ced68f72861d30b
parentdccedaaa5262cfbf537b740d83aabf52e94c3143
bcachefs: Btree key cache improvements

 - In userspace, we don't have real percpu variables; this patch
   disables the percpu freelists in userspace
 - add some error messages for the asserts in
   bch2_fs_btree_key_cache_exit(); we've been hitting this (only in
   userspace, oddly), perhaps this will help us track down the error.
 - bkey_cached_reuse() should likely be taking the key cache lock, and
   it's a slowpath so it doesn't hurt to

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