summaryrefslogtreecommitdiffstats
path: root/mm/slab_common.c
diff options
context:
space:
mode:
authorRoman Gushchin2019-07-12 05:56:16 +0200
committerLinus Torvalds2019-07-12 20:05:44 +0200
commit6cea1d569d24af6f9e95f70cb301807440ae2981 (patch)
tree627558acba0010e257fe70d28a99ad3b35ed69ba /mm/slab_common.c
parentmm: memcg/slab: introduce __memcg_kmem_uncharge_memcg() (diff)
downloadkernel-qcow2-linux-6cea1d569d24af6f9e95f70cb301807440ae2981.tar.gz
kernel-qcow2-linux-6cea1d569d24af6f9e95f70cb301807440ae2981.tar.xz
kernel-qcow2-linux-6cea1d569d24af6f9e95f70cb301807440ae2981.zip
mm: memcg/slab: unify SLAB and SLUB page accounting
Currently the page accounting code is duplicated in SLAB and SLUB internals. Let's move it into new (un)charge_slab_page helpers in the slab_common.c file. These helpers will be responsible for statistics (global and memcg-aware) and memcg charging. So they are replacing direct memcg_(un)charge_slab() calls. Link: http://lkml.kernel.org/r/20190611231813.3148843-6-guro@fb.com Signed-off-by: Roman Gushchin <guro@fb.com> Reviewed-by: Shakeel Butt <shakeelb@google.com> Acked-by: Christoph Lameter <cl@linux.com> Acked-by: Vladimir Davydov <vdavydov.dev@gmail.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Waiman Long <longman@redhat.com> Cc: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: Andrei Vagin <avagin@gmail.com> Cc: Qian Cai <cai@lca.pw> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slab_common.c')
0 files changed, 0 insertions, 0 deletions