bcachefs: mark bch_inode_info and bkey_cached as reclaimable
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 13 Jul 2023 16:00:28 +0000 (18:00 +0200)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:07 +0000 (17:10 -0400)
commit5eaa76d813d48a524a1ce040539048b851a0a20c
tree701e7bbaee3bde1a4e12596e49c14500710a7139
parent986e9842fb6825f65918ed400b29c8c878359b7a
bcachefs: mark bch_inode_info and bkey_cached as reclaimable

Mark these caches as reclaimable, so that available memory is correctly
reported when there is a lot of cached inodes.

Note that more work is needed - you should add __GFP_RECLAIMABLE to some
of the kmalloc calls, so that they are allocated from the "kmalloc-rcl-*"
caches.

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