|
@@ -627,29 +627,28 @@ int split_free_page(struct page *page);
|
|
|
* prototype for that function and accessor functions.
|
|
|
* These are _only_ valid on the head of a PG_compound page.
|
|
|
*/
|
|
|
-typedef void compound_page_dtor(struct page *);
|
|
|
|
|
|
static inline void set_compound_page_dtor(struct page *page,
|
|
|
compound_page_dtor *dtor)
|
|
|
{
|
|
|
- page[1].lru.next = (void *)dtor;
|
|
|
+ page[1].compound_dtor = dtor;
|
|
|
}
|
|
|
|
|
|
static inline compound_page_dtor *get_compound_page_dtor(struct page *page)
|
|
|
{
|
|
|
- return (compound_page_dtor *)page[1].lru.next;
|
|
|
+ return page[1].compound_dtor;
|
|
|
}
|
|
|
|
|
|
static inline int compound_order(struct page *page)
|
|
|
{
|
|
|
if (!PageHead(page))
|
|
|
return 0;
|
|
|
- return (unsigned long)page[1].lru.prev;
|
|
|
+ return page[1].compound_order;
|
|
|
}
|
|
|
|
|
|
static inline void set_compound_order(struct page *page, unsigned long order)
|
|
|
{
|
|
|
- page[1].lru.prev = (void *)order;
|
|
|
+ page[1].compound_order = order;
|
|
|
}
|
|
|
|
|
|
#ifdef CONFIG_MMU
|