|
@@ -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]++;
|
|
|
}
|
|
|
}
|
|
|
|