diff options
Diffstat (limited to 'arch/i386/mm/pgtable.c')
-rw-r--r-- | arch/i386/mm/pgtable.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/i386/mm/pgtable.c b/arch/i386/mm/pgtable.c index dcdce2c6c532..39c099f15b5f 100644 --- a/arch/i386/mm/pgtable.c +++ b/arch/i386/mm/pgtable.c | |||
@@ -188,19 +188,19 @@ static inline void pgd_list_add(pgd_t *pgd) | |||
188 | struct page *page = virt_to_page(pgd); | 188 | struct page *page = virt_to_page(pgd); |
189 | page->index = (unsigned long)pgd_list; | 189 | page->index = (unsigned long)pgd_list; |
190 | if (pgd_list) | 190 | if (pgd_list) |
191 | pgd_list->private = (unsigned long)&page->index; | 191 | set_page_private(pgd_list, (unsigned long)&page->index); |
192 | pgd_list = page; | 192 | pgd_list = page; |
193 | page->private = (unsigned long)&pgd_list; | 193 | set_page_private(page, (unsigned long)&pgd_list); |
194 | } | 194 | } |
195 | 195 | ||
196 | static inline void pgd_list_del(pgd_t *pgd) | 196 | static inline void pgd_list_del(pgd_t *pgd) |
197 | { | 197 | { |
198 | struct page *next, **pprev, *page = virt_to_page(pgd); | 198 | struct page *next, **pprev, *page = virt_to_page(pgd); |
199 | next = (struct page *)page->index; | 199 | next = (struct page *)page->index; |
200 | pprev = (struct page **)page->private; | 200 | pprev = (struct page **)page_private(page); |
201 | *pprev = next; | 201 | *pprev = next; |
202 | if (next) | 202 | if (next) |
203 | next->private = (unsigned long)pprev; | 203 | set_page_private(next, (unsigned long)pprev); |
204 | } | 204 | } |
205 | 205 | ||
206 | void pgd_ctor(void *pgd, kmem_cache_t *cache, unsigned long unused) | 206 | void pgd_ctor(void *pgd, kmem_cache_t *cache, unsigned long unused) |