Commit de894013 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] arm: stop using page->list

Switch the ARM `small_page' code over to page->lru.
parent 0fcb51fd
......@@ -95,7 +95,7 @@ static unsigned long __get_small_page(int priority, struct order *order)
offset = ffz(USED_MAP(page));
SET_USED(page, offset);
if (USED_MAP(page) == order->all_used)
list_del_init(&page->list);
list_del_init(&page->lru);
spin_unlock_irqrestore(&small_page_lock, flags);
return (unsigned long) page_address(page) + (offset << order->shift);
......@@ -110,7 +110,7 @@ static unsigned long __get_small_page(int priority, struct order *order)
goto no_page;
SetPageReserved(page);
USED_MAP(page) = 0;
list_add(&page->list, &order->queue);
list_add(&page->lru, &order->queue);
goto again;
}
......@@ -151,7 +151,7 @@ static void __free_small_page(unsigned long spage, struct order *order)
spin_lock_irqsave(&small_page_lock, flags);
if (USED_MAP(page) == order->all_used)
list_add(&page->list, &order->queue);
list_add(&page->lru, &order->queue);
if (!TEST_AND_CLEAR_USED(page, spage))
goto already_free;
......@@ -167,7 +167,7 @@ static void __free_small_page(unsigned long spage, struct order *order)
/*
* unlink the page from the small page queue and free it
*/
list_del_init(&page->list);
list_del_init(&page->lru);
spin_unlock_irqrestore(&small_page_lock, flags);
ClearPageReserved(page);
__free_page(page);
......
Markdown is supported
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