• Kent Overstreet's avatar
    bcachefs: Btree key cache improvements · fe5b37f6
    Kent Overstreet authored
     - 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: default avatarKent Overstreet <kent.overstreet@linux.dev>
    fe5b37f6
btree_key_cache.c 24.5 KB