Commit 90687aa1 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] stop using page.list in pageattr.c

Switch it to ->lru
parent c41bb9c4
...@@ -132,7 +132,7 @@ __change_page_attr(struct page *page, pgprot_t prot) ...@@ -132,7 +132,7 @@ __change_page_attr(struct page *page, pgprot_t prot)
} }
if (cpu_has_pse && (atomic_read(&kpte_page->count) == 1)) { if (cpu_has_pse && (atomic_read(&kpte_page->count) == 1)) {
list_add(&kpte_page->list, &df_list); list_add(&kpte_page->lru, &df_list);
revert_page(kpte_page, address); revert_page(kpte_page, address);
} }
return 0; return 0;
...@@ -185,7 +185,7 @@ void global_flush_tlb(void) ...@@ -185,7 +185,7 @@ void global_flush_tlb(void)
flush_map(); flush_map();
n = l.next; n = l.next;
while (n != &l) { while (n != &l) {
struct page *pg = list_entry(n, struct page, list); struct page *pg = list_entry(n, struct page, lru);
n = n->next; n = n->next;
__free_page(pg); __free_page(pg);
} }
......
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