[PATCH] mm: make compound page destructor handling explicit
[linux-2.6.git] / mm / hugetlb.c
index 2911a364481e60ae60efab6b4b737faf5f5e9fc4..0ccc7f2302529b0e3a237c556f895ab4ddfb3911 100644 (file)
@@ -109,7 +109,7 @@ static int alloc_fresh_huge_page(void)
        if (nid == MAX_NUMNODES)
                nid = first_node(node_online_map);
        if (page) {
-               page[1].lru.next = (void *)free_huge_page;      /* dtor */
+               set_compound_page_dtor(page, free_huge_page);
                spin_lock(&hugetlb_lock);
                nr_huge_pages++;
                nr_huge_pages_node[page_to_nid(page)]++;