aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-07-11 20:23:48 -0400
committerPekka Enberg <penberg@kernel.org>2013-07-15 05:37:55 -0400
commite35e1a9744bfc267bf511c2f37266103994466c8 (patch)
treeb85540f884dd82a7ab144301260501bec314ca3e /mm/slub.c
parentad81f0545ef01ea651886dddac4bef6cec930092 (diff)
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 <cl@linux.com> Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c6
1 files changed, 1 insertions, 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,
4271 int node; 4271 int node;
4272 int x; 4272 int x;
4273 unsigned long *nodes; 4273 unsigned long *nodes;
4274 unsigned long *per_cpu;
4275 4274
4276 nodes = kzalloc(2 * sizeof(unsigned long) * nr_node_ids, GFP_KERNEL); 4275 nodes = kzalloc(sizeof(unsigned long) * nr_node_ids, GFP_KERNEL);
4277 if (!nodes) 4276 if (!nodes)
4278 return -ENOMEM; 4277 return -ENOMEM;
4279 per_cpu = nodes + nr_node_ids;
4280 4278
4281 if (flags & SO_CPU) { 4279 if (flags & SO_CPU) {
4282 int cpu; 4280 int cpu;
@@ -4307,8 +4305,6 @@ static ssize_t show_slab_objects(struct kmem_cache *s,
4307 total += x; 4305 total += x;
4308 nodes[node] += x; 4306 nodes[node] += x;
4309 } 4307 }
4310
4311 per_cpu[node]++;
4312 } 4308 }
4313 } 4309 }
4314 4310