aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorNick Piggin <npiggin@suse.de>2006-12-06 23:32:00 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 11:39:21 -0500
commitcc102509074bba0316f2b5deebd7ef4447da295e (patch)
tree44ac5fc0c0dd7a24e8925e680a03361f4722a5a6 /mm/page_alloc.c
parent7602bdf2fd14a40dd9b104e516fdc05e1bd17952 (diff)
[PATCH] mm: add arch_alloc_page
Add an arch_alloc_page to match arch_free_page. Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 230771d3c6b6..cd47e8f7bd5b 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -598,6 +598,8 @@ static int prep_new_page(struct page *page, int order, gfp_t gfp_flags)
598 1 << PG_checked | 1 << PG_mappedtodisk); 598 1 << PG_checked | 1 << PG_mappedtodisk);
599 set_page_private(page, 0); 599 set_page_private(page, 0);
600 set_page_refcounted(page); 600 set_page_refcounted(page);
601
602 arch_alloc_page(page, order);
601 kernel_map_pages(page, 1 << order, 1); 603 kernel_map_pages(page, 1 << order, 1);
602 604
603 if (gfp_flags & __GFP_ZERO) 605 if (gfp_flags & __GFP_ZERO)