summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWanpeng Li <liwanp@linux.vnet.ibm.com>2013-07-04 08:33:25 +0800
committerPekka Enberg <penberg@kernel.org>2013-07-07 18:37:48 +0300
commita446336454cf9ce3234a6013d1c3b482358d9459 (patch)
tree533bd10dc1d2fd4f78e6226651fa00de048b4c80
parente9b4db2b8dba6b6c666e54b20ce46f3e597a6d96 (diff)
downloadlinux-stable-a446336454cf9ce3234a6013d1c3b482358d9459.tar.gz
linux-stable-a446336454cf9ce3234a6013d1c3b482358d9459.tar.bz2
linux-stable-a446336454cf9ce3234a6013d1c3b482358d9459.zip
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.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);
#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);