From: Fengguang Wu And fix bad_page() warnings. Now it's safe. I'm running it :) Signed-off-by: Fengguang Wu Signed-off-by: Andrew Morton --- mm/page_alloc.c | 7 ------- 1 file changed, 7 deletions(-) diff -puN mm/page_alloc.c~mm-share-pg_readahead-and-pg_reclaim-fix-2 mm/page_alloc.c --- a/mm/page_alloc.c~mm-share-pg_readahead-and-pg_reclaim-fix-2 +++ a/mm/page_alloc.c @@ -454,12 +454,6 @@ static inline int free_pages_check(struc 1 << PG_reserved | 1 << PG_buddy )))) bad_page(page); - /* - * PageReclaim == PageTail. It is only an error - * for PageReclaim to be set if PageCompound is clear. - */ - if (unlikely(!PageCompound(page) && PageReclaim(page))) - bad_page(page); if (PageDirty(page)) __ClearPageDirty(page); /* @@ -604,7 +598,6 @@ static int prep_new_page(struct page *pa 1 << PG_locked | 1 << PG_active | 1 << PG_dirty | - 1 << PG_reclaim | 1 << PG_slab | 1 << PG_swapcache | 1 << PG_writeback | _