]> git.sesse.net Git - bcachefs-tools-debian/commit
Shrinker improvements
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 22 Mar 2022 00:20:09 +0000 (20:20 -0400)
committerKent Overstreet <kent.overstreet@gmail.com>
Tue, 22 Mar 2022 00:20:09 +0000 (20:20 -0400)
commit1a9d73b5c0b949fd4b53935a43e7dc1e0d9d1127
treecbe5bbae21ca9f9a4cf2f206d6bd665903ae0084
parent205d75307a7c71f3807c8aa74405cd7267a40e4b
Shrinker improvements

After memory allocation failure, don't rely on /proc/meminfo to figure
out how much memory we should free - instead unconditionally free 1/8th
of each cache.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
include/linux/shrinker.h
include/linux/slab.h
include/linux/vmalloc.h
linux/shrinker.c