diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2007-07-19 04:49:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:04:50 -0400 |
commit | f8af0bb890d6cdcb09ec042c128e217a7c500355 (patch) | |
tree | c74f53e64b74162488b7ca3f5199acf7f5b6e501 /mm/hugetlb.c | |
parent | 7ed5cb2b73d0c4165c0504c95454fade0c0bf3d9 (diff) |
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: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Adam Litke <agl@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r-- | mm/hugetlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 2d7611cf276a..f127940ec24f 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c | |||
@@ -208,7 +208,7 @@ static void update_and_free_page(struct page *page) | |||
208 | 1 << PG_dirty | 1 << PG_active | 1 << PG_reserved | | 208 | 1 << PG_dirty | 1 << PG_active | 1 << PG_reserved | |
209 | 1 << PG_private | 1<< PG_writeback); | 209 | 1 << PG_private | 1<< PG_writeback); |
210 | } | 210 | } |
211 | page[1].lru.next = NULL; | 211 | set_compound_page_dtor(page, NULL); |
212 | set_page_refcounted(page); | 212 | set_page_refcounted(page); |
213 | __free_pages(page, HUGETLB_PAGE_ORDER); | 213 | __free_pages(page, HUGETLB_PAGE_ORDER); |
214 | } | 214 | } |