]> Git Repo - linux.git/commit
bcachefs: Use mm_account_reclaimed_pages() when freeing btree nodes
authorKent Overstreet <[email protected]>
Wed, 4 Sep 2024 19:30:48 +0000 (15:30 -0400)
committerKent Overstreet <[email protected]>
Sat, 21 Sep 2024 15:39:48 +0000 (11:39 -0400)
commitff7f756f2be5b37e323ff8215e500ee564551db9
tree1f3b855cd4e59d954a75a74549f97adaf66547c7
parent895fbf1cf02f0c913bb443e9ae18a230bbd174c1
bcachefs: Use mm_account_reclaimed_pages() when freeing btree nodes

When freeing in a shrinker callback, we need to notify memory reclaim,
so it knows forward progress has been made.

Normally this is done in e.g. slab code, but we're not freeing through
slab - or rather we are, but these allocations are big, and use the
kmalloc_large() path.

This is really a bug in the slub code, but we're working around it here
for now.

Signed-off-by: Kent Overstreet <[email protected]>
fs/bcachefs/btree_cache.c
This page took 0.049871 seconds and 4 git commands to generate.