Commit 70dc991d authored by Nick Piggin's avatar Nick Piggin Committed by Linus Torvalds

[PATCH] remove set_page_count(page, 0) users (outside mm)

A couple of places set_page_count(page, 1) that don't need to.
Signed-off-by: default avatarNick Piggin <npiggin@suse.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 84097518
...@@ -108,8 +108,8 @@ EXPORT_SYMBOL(phys_mem_access_prot); ...@@ -108,8 +108,8 @@ EXPORT_SYMBOL(phys_mem_access_prot);
void online_page(struct page *page) void online_page(struct page *page)
{ {
ClearPageReserved(page); ClearPageReserved(page);
set_page_count(page, 0); set_page_count(page, 1);
free_cold_page(page); __free_page(page);
totalram_pages++; totalram_pages++;
num_physpages++; num_physpages++;
} }
......
...@@ -279,7 +279,7 @@ int init_maps(unsigned long physmem, unsigned long iomem, unsigned long highmem) ...@@ -279,7 +279,7 @@ int init_maps(unsigned long physmem, unsigned long iomem, unsigned long highmem)
for(i = 0; i < total_pages; i++){ for(i = 0; i < total_pages; i++){
p = &map[i]; p = &map[i];
set_page_count(p, 0); memset(p, 0, sizeof(struct page));
SetPageReserved(p); SetPageReserved(p);
INIT_LIST_HEAD(&p->lru); INIT_LIST_HEAD(&p->lru);
} }
......
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