summaryrefslogtreecommitdiffstats
path: root/mm/page_counter.c
diff options
context:
space:
mode:
authorJohannes Weiner2014-12-11 00:42:42 +0100
committerLinus Torvalds2014-12-11 02:41:05 +0100
commite8ea14cc6eadfe2ea63e9989e16e62625a2619f8 (patch)
tree8109a731e199928c2fd87d3633a56a3251d85245 /mm/page_counter.c
parentmm: memcontrol: convert reclaim iterator to simple css refcounting (diff)
downloadkernel-qcow2-linux-e8ea14cc6eadfe2ea63e9989e16e62625a2619f8.tar.gz
kernel-qcow2-linux-e8ea14cc6eadfe2ea63e9989e16e62625a2619f8.tar.xz
kernel-qcow2-linux-e8ea14cc6eadfe2ea63e9989e16e62625a2619f8.zip
mm: memcontrol: take a css reference for each charged page
Charges currently pin the css indirectly by playing tricks during css_offline(): user pages stall the offlining process until all of them have been reparented, whereas kmemcg acquires a keep-alive reference if outstanding kernel pages are detected at that point. In preparation for removing all this complexity, make the pinning explicit and acquire a css references for every charged page. Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Reviewed-by: Vladimir Davydov <vdavydov@parallels.com> Acked-by: Michal Hocko <mhocko@suse.cz> Cc: David Rientjes <rientjes@google.com> Cc: Tejun Heo <tj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_counter.c')
0 files changed, 0 insertions, 0 deletions