diff options
author | Wanpeng Li <liwanp@linux.vnet.ibm.com> | 2013-07-04 08:33:25 +0800 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2013-07-07 18:37:48 +0300 |
commit | a446336454cf9ce3234a6013d1c3b482358d9459 (patch) | |
tree | 533bd10dc1d2fd4f78e6226651fa00de048b4c80 | |
parent | e9b4db2b8dba6b6c666e54b20ce46f3e597a6d96 (diff) | |
download | op-kernel-dev-a446336454cf9ce3234a6013d1c3b482358d9459.zip op-kernel-dev-a446336454cf9ce3234a6013d1c3b482358d9459.tar.gz |
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>
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -5266,7 +5266,6 @@ __initcall(slab_sysfs_init); #ifdef CONFIG_SLABINFO void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo) { - unsigned long nr_partials = 0; unsigned long nr_slabs = 0; unsigned long nr_objs = 0; unsigned long nr_free = 0; @@ -5278,7 +5277,6 @@ void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo) if (!n) continue; - nr_partials += n->nr_partial; nr_slabs += atomic_long_read(&n->nr_slabs); nr_objs += atomic_long_read(&n->total_objects); nr_free += count_partial(n, count_free); |