Commit d981733a authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] Use reset_page_mapcount to initialize empty_zero_page usage counter.


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 8b36612a
...@@ -68,7 +68,7 @@ unsigned long setup_zero_pages(void) ...@@ -68,7 +68,7 @@ unsigned long setup_zero_pages(void)
page = virt_to_page(empty_zero_page); page = virt_to_page(empty_zero_page);
while (page < virt_to_page(empty_zero_page + (PAGE_SIZE << order))) { while (page < virt_to_page(empty_zero_page + (PAGE_SIZE << order))) {
set_bit(PG_reserved, &page->flags); set_bit(PG_reserved, &page->flags);
set_page_count(page, 0); reset_page_mapcount(page);
page++; page++;
} }
......
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