summaryrefslogtreecommitdiff
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2008-07-23 21:27:46 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-24 10:47:17 -0700
commit01ad1c0827db5b3695c53e296dbb2c1da16a0911 (patch)
tree80c46c00832094f2413ad97b8e1953018a71cc68 /mm/page_alloc.c
parentb54bbf7b81170f03597c17dd0b559e3006bc9868 (diff)
downloadlinux-stable-01ad1c0827db5b3695c53e296dbb2c1da16a0911.tar.gz
linux-stable-01ad1c0827db5b3695c53e296dbb2c1da16a0911.tar.bz2
linux-stable-01ad1c0827db5b3695c53e296dbb2c1da16a0911.zip
mm: export prep_compound_page to mm
hugetlb will need to get compound pages from bootmem to handle the case of them being greater than or equal to MAX_ORDER. Export the constructor function needed for this. Acked-by: Adam Litke <agl@us.ibm.com> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index e43aae135b38..eaa86671ebbd 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -264,7 +264,7 @@ static void free_compound_page(struct page *page)
__free_pages_ok(page, compound_order(page));
}
-static void prep_compound_page(struct page *page, unsigned long order)
+void prep_compound_page(struct page *page, unsigned long order)
{
int i;
int nr_pages = 1 << order;