Skip to content

Commit

Permalink
mm/slub: Drop unnecessary nr_partials
Browse files Browse the repository at this point in the history
This patch remove unused nr_partials variable.

Acked-by: Christoph Lameter <[email protected]>
Signed-off-by: Wanpeng Li <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
  • Loading branch information
Wanpeng Li authored and penberg committed Jul 7, 2013
1 parent e9b4db2 commit a446336
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit a446336

Please sign in to comment.