aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 8ca06d87dc1f..131655cdb6b2 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -300,23 +300,6 @@ void prep_compound_page(struct page *page, unsigned long order)
300 } 300 }
301} 301}
302 302
303#ifdef CONFIG_HUGETLBFS
304void prep_compound_gigantic_page(struct page *page, unsigned long order)
305{
306 int i;
307 int nr_pages = 1 << order;
308 struct page *p = page + 1;
309
310 set_compound_page_dtor(page, free_compound_page);
311 set_compound_order(page, order);
312 __SetPageHead(page);
313 for (i = 1; i < nr_pages; i++, p = mem_map_next(p, page, i)) {
314 __SetPageTail(p);
315 p->first_page = page;
316 }
317}
318#endif
319
320static int destroy_compound_page(struct page *page, unsigned long order) 303static int destroy_compound_page(struct page *page, unsigned long order)
321{ 304{
322 int i; 305 int i;