From e35e1a9744bfc267bf511c2f37266103994466c8 Mon Sep 17 00:00:00 2001 From: Chen Gang Date: Fri, 12 Jul 2013 08:23:48 +0800 Subject: [PATCH] mm/slub: remove 'per_cpu' which is useless variable Remove 'per_cpu', since it is useless now after the patch: "205ab99 slub: Update statistics handling for variable order slabs". And the partial list is handled in the same way as the per cpu slab. Acked-by: Christoph Lameter Signed-off-by: Chen Gang Signed-off-by: Pekka Enberg --- mm/slub.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index 3b482c863002..4636c8810b8d 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -4271,12 +4271,10 @@ static ssize_t show_slab_objects(struct kmem_cache *s, int node; int x; unsigned long *nodes; - unsigned long *per_cpu; - nodes = kzalloc(2 * sizeof(unsigned long) * nr_node_ids, GFP_KERNEL); + nodes = kzalloc(sizeof(unsigned long) * nr_node_ids, GFP_KERNEL); if (!nodes) return -ENOMEM; - per_cpu = nodes + nr_node_ids; if (flags & SO_CPU) { int cpu; @@ -4307,8 +4305,6 @@ static ssize_t show_slab_objects(struct kmem_cache *s, total += x; nodes[node] += x; } - - per_cpu[node]++; } }