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

[PATCH] minor page_alloc.c things

- Kill duplicate debug check

- Add a test for pages which have a pte_chain coming off the buddy lists.
parent 97f068ec
......@@ -93,7 +93,6 @@ void __free_pages_ok (struct page *page, unsigned int order)
BUG_ON(PagePrivate(page));
BUG_ON(page->mapping != NULL);
BUG_ON(PageLocked(page));
BUG_ON(PageLRU(page));
BUG_ON(PageActive(page));
BUG_ON(PageWriteback(page));
BUG_ON(page->pte.chain != NULL);
......@@ -186,6 +185,7 @@ static inline void prep_new_page(struct page *page)
BUG_ON(PageActive(page));
BUG_ON(PageDirty(page));
BUG_ON(PageWriteback(page));
BUG_ON(page->pte.chain != NULL);
page->flags &= ~(1 << PG_uptodate | 1 << PG_error |
1 << PG_referenced | 1 << PG_arch_1 |
1 << PG_checked);
......
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