[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 <hugh@veritas.com> Cc: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
7a4ae749a4
commit
68352e6ee3
1 changed files with 2 additions and 2 deletions
|
@ -67,8 +67,8 @@ 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);
|
SetPageReserved(page);
|
||||||
reset_page_mapcount(page);
|
set_page_count(page, 1);
|
||||||
page++;
|
page++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue