Skip to contentSkip to conversation

mm/slub.c: remove a redundant assignment in ___slab_alloc()

PATCH New [email protected] 1 participant 1 message Jul 6, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 20/108 mm/slub.c: remove a redundant assignment in ___slab_alloc()

From: Wei Yang <[email protected]>
Subject: mm/slub.c: remove a redundant assignment in ___slab_alloc()

When the code comes to this point, there are two cases:
1. cpu_slab is deactivated
2. cpu_slab is empty

In both cased, cpu_slab->freelist is NULL at this moment.

This patch removes the redundant assignment of cpu_slab->freelist.

---

 mm/slub.c |    1 -
 1 file changed, 1 deletion(-)
mm/slub.c renamed from mm/slub.c~mm-slub-remove-a-redundant-assignment-in-___slab_alloc +0 -1
diff -puN mm/slub.c~mm-slub-remove-a-redundant-assignment-in-___slab_alloc mm/slub.c
@@ -2572,7 +2572,6 @@ new_slab:
 		page = c->page = c->partial;
 		c->partial = page->next;
 		stat(s, CPU_PARTIAL_ALLOC);
-		c->freelist = NULL;
 		goto redo;
 	}
 

_