|
@@ -114,13 +114,12 @@ static inline void pgd_list_del(pgd_t *pgd)
|
|
|
|
|
|
static void pgd_set_mm(pgd_t *pgd, struct mm_struct *mm)
|
|
static void pgd_set_mm(pgd_t *pgd, struct mm_struct *mm)
|
|
{
|
|
{
|
|
- BUILD_BUG_ON(sizeof(virt_to_page(pgd)->index) < sizeof(mm));
|
|
|
|
- virt_to_page(pgd)->index = (pgoff_t)mm;
|
|
|
|
|
|
+ virt_to_page(pgd)->pt_mm = mm;
|
|
}
|
|
}
|
|
|
|
|
|
struct mm_struct *pgd_page_get_mm(struct page *page)
|
|
struct mm_struct *pgd_page_get_mm(struct page *page)
|
|
{
|
|
{
|
|
- return (struct mm_struct *)page->index;
|
|
|
|
|
|
+ return page->pt_mm;
|
|
}
|
|
}
|
|
|
|
|
|
static void pgd_ctor(struct mm_struct *mm, pgd_t *pgd)
|
|
static void pgd_ctor(struct mm_struct *mm, pgd_t *pgd)
|