memcg, kmem: use cache_from_memcg_idx instead of hard code
authorQiang Huang <h.huangqiang@huawei.com>
Tue, 12 Nov 2013 23:08:24 +0000 (15:08 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:10 +0000 (12:09 +0900)
commit7a67d7abcc8da30a16ed64c3909d3fea004bde93
treea325a2f97b5ef0b312230e2c03d5478446afe8ef
parent2ade4de871172b17dd81b336cf0488a83885ffde
memcg, kmem: use cache_from_memcg_idx instead of hard code

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Glauber Costa <glommer@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c