OSDN Git Service

[MIPS] Use reset_page_mapcount to initialize empty_zero_page usage counter.
authorRalf Baechle <ralf@linux-mips.org>
Wed, 23 Nov 2005 13:49:09 +0000 (13:49 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 1 Dec 2005 11:05:13 +0000 (11:05 +0000)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/init.c

index f75ab74..3a49036 100644 (file)
@@ -68,7 +68,7 @@ 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);
-               set_page_count(page, 0);
+               reset_page_mapcount(page);
                page++;
        }