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) ...@@ -95,7 +95,7 @@ static unsigned long __get_small_page(int priority, struct order *order)
offset = ffz(USED_MAP(page)); offset = ffz(USED_MAP(page));
SET_USED(page, offset); SET_USED(page, offset);
if (USED_MAP(page) == order->all_used) if (USED_MAP(page) == order->all_used)
list_del_init(&page->list); list_del_init(&page->lru);
spin_unlock_irqrestore(&small_page_lock, flags); spin_unlock_irqrestore(&small_page_lock, flags);
return (unsigned long) page_address(page) + (offset << order->shift); return (unsigned long) page_address(page) + (offset << order->shift);
...@@ -110,7 +110,7 @@ static unsigned long __get_small_page(int priority, struct order *order) ...@@ -110,7 +110,7 @@ static unsigned long __get_small_page(int priority, struct order *order)
goto no_page; goto no_page;
SetPageReserved(page); SetPageReserved(page);
USED_MAP(page) = 0; USED_MAP(page) = 0;
list_add(&page->list, &order->queue); list_add(&page->lru, &order->queue);
goto again; goto again;
} }
...@@ -151,7 +151,7 @@ static void __free_small_page(unsigned long spage, struct order *order) ...@@ -151,7 +151,7 @@ static void __free_small_page(unsigned long spage, struct order *order)
spin_lock_irqsave(&small_page_lock, flags); spin_lock_irqsave(&small_page_lock, flags);
if (USED_MAP(page) == order->all_used) 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)) if (!TEST_AND_CLEAR_USED(page, spage))
goto already_free; goto already_free;
...@@ -167,7 +167,7 @@ static void __free_small_page(unsigned long spage, struct order *order) ...@@ -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 * 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); spin_unlock_irqrestore(&small_page_lock, flags);
ClearPageReserved(page); ClearPageReserved(page);
__free_page(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