提交 d981733a 编写于 作者: R Ralf Baechle

[MIPS] Use reset_page_mapcount to initialize empty_zero_page usage counter.

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册