summaryrefslogtreecommitdiffstats
path: root/mm/ksm.c
diff options
context:
space:
mode:
authorVladimir Davydov2015-11-06 03:49:04 +0100
committerLinus Torvalds2015-11-06 04:34:48 +0100
commitdf4065516b0dbfa35ac0e9b8124d441221c0a285 (patch)
tree4b96cb7cbe15db5bb219c107904d2ed495b63a87 /mm/ksm.c
parentmemcg: unify slab and other kmem pages charging (diff)
downloadkernel-qcow2-linux-df4065516b0dbfa35ac0e9b8124d441221c0a285.tar.gz
kernel-qcow2-linux-df4065516b0dbfa35ac0e9b8124d441221c0a285.tar.xz
kernel-qcow2-linux-df4065516b0dbfa35ac0e9b8124d441221c0a285.zip
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. [hughd@google.com: move mem_cgroup_from_kmem into list_lru.c] Signed-off-by: Vladimir Davydov <vdavydov@virtuozzo.com> Acked-by: Michal Hocko <mhocko@suse.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/ksm.c')
0 files changed, 0 insertions, 0 deletions