diff options
Diffstat (limited to 'arch/frv/mm/pgalloc.c')
-rw-r--r-- | arch/frv/mm/pgalloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/frv/mm/pgalloc.c b/arch/frv/mm/pgalloc.c index 4eaec0f3525b..2c67dfe5a6b3 100644 --- a/arch/frv/mm/pgalloc.c +++ b/arch/frv/mm/pgalloc.c | |||
@@ -87,14 +87,14 @@ static inline void pgd_list_add(pgd_t *pgd) | |||
87 | if (pgd_list) | 87 | if (pgd_list) |
88 | pgd_list->private = (unsigned long) &page->index; | 88 | pgd_list->private = (unsigned long) &page->index; |
89 | pgd_list = page; | 89 | pgd_list = page; |
90 | page->private = (unsigned long) &pgd_list; | 90 | set_page_private(page, (unsigned long)&pgd_list); |
91 | } | 91 | } |
92 | 92 | ||
93 | static inline void pgd_list_del(pgd_t *pgd) | 93 | static inline void pgd_list_del(pgd_t *pgd) |
94 | { | 94 | { |
95 | struct page *next, **pprev, *page = virt_to_page(pgd); | 95 | struct page *next, **pprev, *page = virt_to_page(pgd); |
96 | next = (struct page *) page->index; | 96 | next = (struct page *) page->index; |
97 | pprev = (struct page **) page->private; | 97 | pprev = (struct page **)page_private(page); |
98 | *pprev = next; | 98 | *pprev = next; |
99 | if (next) | 99 | if (next) |
100 | next->private = (unsigned long) pprev; | 100 | next->private = (unsigned long) pprev; |