diff options
author | Vladimir Davydov <vdavydov@virtuozzo.com> | 2016-03-17 22:18:30 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-17 23:09:34 +0100 |
commit | 0fc9f58a90a5012942abf0ae98cfc852afebc0a6 (patch) | |
tree | 3b51544a861e0fc6f9e6398937552aff1e55a072 /mm/memcontrol.c | |
parent | mm: memcontrol: enable kmem accounting for all cgroups in the legacy hierarchy (diff) | |
download | linux-0fc9f58a90a5012942abf0ae98cfc852afebc0a6.tar.xz linux-0fc9f58a90a5012942abf0ae98cfc852afebc0a6.zip |
mm: vmscan: pass root_mem_cgroup instead of NULL to memcg aware shrinker
It's just convenient to implement a memcg aware shrinker when you know
that shrink_control->memcg != NULL unless memcg_kmem_enabled() returns
false.
Signed-off-by: Vladimir Davydov <vdavydov@virtuozzo.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
0 files changed, 0 insertions, 0 deletions