diff options
| author | Chen Gang <gang.chen@asianux.com> | 2013-07-12 08:23:48 +0800 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-09-28 15:12:46 +0200 |
| commit | dce473d2cc31845bfb5f1c8292151c40234c70d5 (patch) | |
| tree | cac20996d66d92ac9604a917afe522d1b50a79b9 | |
| parent | 48c9a83f8b8b99bee49ec3b0a088a29fc7be8f56 (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>
Signed-off-by: W4TCH0UT <ateekujjawal@gmail.com>
| -rw-r--r-- | mm/slub.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -4443,12 +4443,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; @@ -4485,8 +4483,6 @@ static ssize_t show_slab_objects(struct kmem_cache *s, total += x; nodes[node] += x; } - - per_cpu[node]++; } } |
