aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorWanpeng Li <liwanp@linux.vnet.ibm.com>2013-07-03 20:33:25 -0400
committerPekka Enberg <penberg@kernel.org>2013-07-07 11:37:48 -0400
commita446336454cf9ce3234a6013d1c3b482358d9459 (patch)
tree533bd10dc1d2fd4f78e6226651fa00de048b4c80 /mm/slub.c
parente9b4db2b8dba6b6c666e54b20ce46f3e597a6d96 (diff)
mm/slub: Drop unnecessary nr_partials
This patch remove unused nr_partials variable. Acked-by: Christoph Lameter <cl@linux.com> Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 4df2c0c337fb..f788be3a0b12 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -5266,7 +5266,6 @@ __initcall(slab_sysfs_init);
5266#ifdef CONFIG_SLABINFO 5266#ifdef CONFIG_SLABINFO
5267void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo) 5267void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo)
5268{ 5268{
5269 unsigned long nr_partials = 0;
5270 unsigned long nr_slabs = 0; 5269 unsigned long nr_slabs = 0;
5271 unsigned long nr_objs = 0; 5270 unsigned long nr_objs = 0;
5272 unsigned long nr_free = 0; 5271 unsigned long nr_free = 0;
@@ -5278,7 +5277,6 @@ void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo)
5278 if (!n) 5277 if (!n)
5279 continue; 5278 continue;
5280 5279
5281 nr_partials += n->nr_partial;
5282 nr_slabs += atomic_long_read(&n->nr_slabs); 5280 nr_slabs += atomic_long_read(&n->nr_slabs);
5283 nr_objs += atomic_long_read(&n->total_objects); 5281 nr_objs += atomic_long_read(&n->total_objects);
5284 nr_free += count_partial(n, count_free); 5282 nr_free += count_partial(n, count_free);