From: Hugh Dickins Date: Mon, 12 Dec 2005 08:37:23 +0000 (-0800) Subject: [PATCH] mips: setup_zero_pages count 1 X-Git-Tag: v2.6.15-rc6~126 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=68352e6ee3675e23b492c51908951058de4f6fe0;p=linux-2.6-omap-h63xx.git [PATCH] mips: setup_zero_pages count 1 Page count should be initialized to 1 on each of the MIPS empty zero pages, to avoid a bad_page warning whenever one of them is freed from all mappings. Signed-off-by: Hugh Dickins Cc: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 3a49036e0ae..4ee91c9a556 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c @@ -67,8 +67,8 @@ unsigned long setup_zero_pages(void) page = virt_to_page(empty_zero_page); while (page < virt_to_page(empty_zero_page + (PAGE_SIZE << order))) { - set_bit(PG_reserved, &page->flags); - reset_page_mapcount(page); + SetPageReserved(page); + set_page_count(page, 1); page++; }