Commit 73c0219d authored by Geliang Tang's avatar Geliang Tang Committed by Linus Torvalds
Browse files

mm/slab.c: use list_for_each_entry in cache_flusharray

Simplify the code with list_for_each_entry().

Signed-off-by: default avatarGeliang Tang <>
Acked-by: default avatarChristoph Lameter <>
Cc: Pekka Enberg <>
Cc: David Rientjes <>
Cc: Joonsoo Kim <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent d8ad47d8
......@@ -3338,17 +3338,12 @@ free_done:
int i = 0;
struct list_head *p;
p = n->;
while (p != &(n->slabs_free)) {
struct page *page;
struct page *page;
page = list_entry(p, struct page, lru);
list_for_each_entry(page, &n->slabs_free, lru) {
p = p->next;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment