bcachefs: Add a kmem_cache for btree_key_cache objects
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 18 Nov 2020 19:09:33 +0000 (14:09 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:47 +0000 (17:08 -0400)
commit14ba3706b3a8b5d243e0f250e54baeaecfbd8289
tree980bb536d1b6ff98952d300239955e9b76f3bff0
parented0e24c0992dffe494bdd0ea6ddf3b816c438524
bcachefs: Add a kmem_cache for btree_key_cache objects

We allocate a lot of these, and we're seeing sporading OOMs - this will
help with tracking those down.

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