]> Git Repo - linux.git/commit
vmscan: per memory cgroup slab shrinkers
authorVladimir Davydov <[email protected]>
Thu, 12 Feb 2015 22:58:54 +0000 (14:58 -0800)
committerLinus Torvalds <[email protected]>
Fri, 13 Feb 2015 02:54:09 +0000 (18:54 -0800)
commitcb731d6c62bbc2f890b08ea3d0386d5dad887326
tree1c597a1018d8258585aa65b3c4872a9c5d177d46
parent4101b624352fddb5ed72e7a1b6f8be8cffaa20fa
vmscan: per memory cgroup slab shrinkers

This patch adds SHRINKER_MEMCG_AWARE flag.  If a shrinker has this flag
set, it will be called per memory cgroup.  The memory cgroup to scan
objects from is passed in shrink_control->memcg.  If the memory cgroup
is NULL, a memcg aware shrinker is supposed to scan objects from the
global list.  Unaware shrinkers are only called on global pressure with
memcg=NULL.

Signed-off-by: Vladimir Davydov <[email protected]>
Cc: Dave Chinner <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Greg Thelen <[email protected]>
Cc: Glauber Costa <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Tejun Heo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/drop_caches.c
include/linux/memcontrol.h
include/linux/mm.h
include/linux/shrinker.h
mm/memcontrol.c
mm/memory-failure.c
mm/vmscan.c
This page took 0.058871 seconds and 4 git commands to generate.