Commit f8af0bb8 authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds

hugetlb: use set_compound_page_dtor

Use appropriate accessor function to set compound page destructor
function.

Cc:  William Irwin <wli@holomorphy.com>
Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Acked-by: default avatarAdam Litke <agl@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7ed5cb2b
...@@ -208,7 +208,7 @@ static void update_and_free_page(struct page *page) ...@@ -208,7 +208,7 @@ static void update_and_free_page(struct page *page)
1 << PG_dirty | 1 << PG_active | 1 << PG_reserved | 1 << PG_dirty | 1 << PG_active | 1 << PG_reserved |
1 << PG_private | 1<< PG_writeback); 1 << PG_private | 1<< PG_writeback);
} }
page[1].lru.next = NULL; set_compound_page_dtor(page, NULL);
set_page_refcounted(page); set_page_refcounted(page);
__free_pages(page, HUGETLB_PAGE_ORDER); __free_pages(page, HUGETLB_PAGE_ORDER);
} }
......
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