]> Git Repo - linux.git/commit
memcg: simplify and inline __mem_cgroup_from_kmem
authorVladimir Davydov <[email protected]>
Fri, 6 Nov 2015 02:49:04 +0000 (18:49 -0800)
committerLinus Torvalds <[email protected]>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commitdf4065516b0dbfa35ac0e9b8124d441221c0a285
tree4b96cb7cbe15db5bb219c107904d2ed495b63a87
parentf3ccb2c42297757d2e9b820ad37960462df7b7c1
memcg: simplify and inline __mem_cgroup_from_kmem

Before the previous patch ("memcg: unify slab and other kmem pages
charging"), __mem_cgroup_from_kmem had to handle two types of kmem - slab
pages and pages allocated with alloc_kmem_pages - memcg in the page
struct.  Now we can unify it.  Since after it, this function becomes tiny
we can fold it into mem_cgroup_from_kmem.

[[email protected]: move mem_cgroup_from_kmem into list_lru.c]
Signed-off-by: Vladimir Davydov <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/memcontrol.h
mm/list_lru.c
mm/memcontrol.c
This page took 0.054688 seconds and 4 git commands to generate.