|
@@ -483,11 +483,8 @@ pmd_t maybe_pmd_mkwrite(pmd_t pmd, struct vm_area_struct *vma)
|
|
|
|
|
|
static inline struct list_head *page_deferred_list(struct page *page)
|
|
static inline struct list_head *page_deferred_list(struct page *page)
|
|
{
|
|
{
|
|
- /*
|
|
|
|
- * ->lru in the tail pages is occupied by compound_head.
|
|
|
|
- * Let's use ->mapping + ->index in the second tail page as list_head.
|
|
|
|
- */
|
|
|
|
- return (struct list_head *)&page[2].mapping;
|
|
|
|
|
|
+ /* ->lru in the tail pages is occupied by compound_head. */
|
|
|
|
+ return &page[2].deferred_list;
|
|
}
|
|
}
|
|
|
|
|
|
void prep_transhuge_page(struct page *page)
|
|
void prep_transhuge_page(struct page *page)
|