mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-07 13:43:51 +00:00
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>
This commit is contained in:
parent
ad81f0545e
commit
e35e1a9744
@ -4271,12 +4271,10 @@ static ssize_t show_slab_objects(struct kmem_cache *s,
|
|||||||
int node;
|
int node;
|
||||||
int x;
|
int x;
|
||||||
unsigned long *nodes;
|
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)
|
if (!nodes)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
per_cpu = nodes + nr_node_ids;
|
|
||||||
|
|
||||||
if (flags & SO_CPU) {
|
if (flags & SO_CPU) {
|
||||||
int cpu;
|
int cpu;
|
||||||
@ -4307,8 +4305,6 @@ static ssize_t show_slab_objects(struct kmem_cache *s,
|
|||||||
total += x;
|
total += x;
|
||||||
nodes[node] += x;
|
nodes[node] += x;
|
||||||
}
|
}
|
||||||
|
|
||||||
per_cpu[node]++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user