]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
mm/slub: Drop unnecessary nr_partials
authorWanpeng Li <liwanp@linux.vnet.ibm.com>
Thu, 4 Jul 2013 00:33:25 +0000 (08:33 +0800)
committerPekka Enberg <penberg@kernel.org>
Sun, 7 Jul 2013 15:37:48 +0000 (18:37 +0300)
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>
mm/slub.c

index 4df2c0c337fb9ebd3fd0b8aead967b338a5b4453..f788be3a0b12f9f639925bad23a35ccf73bdd1cd 100644 (file)
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -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);