diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mm/mm-armv.c | 2 | ||||
-rw-r--r-- | arch/i386/mm/pgtable.c | 3 | ||||
-rw-r--r-- | arch/um/kernel/skas/mmu.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mm/mm-armv.c b/arch/arm/mm/mm-armv.c index 95273de4f772..931be1798122 100644 --- a/arch/arm/mm/mm-armv.c +++ b/arch/arm/mm/mm-armv.c | |||
@@ -227,7 +227,7 @@ void free_pgd_slow(pgd_t *pgd) | |||
227 | 227 | ||
228 | pte = pmd_page(*pmd); | 228 | pte = pmd_page(*pmd); |
229 | pmd_clear(pmd); | 229 | pmd_clear(pmd); |
230 | dec_page_state(nr_page_table_pages); | 230 | dec_zone_page_state(virt_to_page((unsigned long *)pgd), NR_PAGETABLE); |
231 | pte_lock_deinit(pte); | 231 | pte_lock_deinit(pte); |
232 | pte_free(pte); | 232 | pte_free(pte); |
233 | pmd_free(pmd); | 233 | pmd_free(pmd); |
diff --git a/arch/i386/mm/pgtable.c b/arch/i386/mm/pgtable.c index 73ac3599a0ea..0bb1e5c13442 100644 --- a/arch/i386/mm/pgtable.c +++ b/arch/i386/mm/pgtable.c | |||
@@ -63,7 +63,8 @@ void show_mem(void) | |||
63 | printk(KERN_INFO "%lu pages writeback\n", ps.nr_writeback); | 63 | printk(KERN_INFO "%lu pages writeback\n", ps.nr_writeback); |
64 | printk(KERN_INFO "%lu pages mapped\n", global_page_state(NR_FILE_MAPPED)); | 64 | printk(KERN_INFO "%lu pages mapped\n", global_page_state(NR_FILE_MAPPED)); |
65 | printk(KERN_INFO "%lu pages slab\n", global_page_state(NR_SLAB)); | 65 | printk(KERN_INFO "%lu pages slab\n", global_page_state(NR_SLAB)); |
66 | printk(KERN_INFO "%lu pages pagetables\n", ps.nr_page_table_pages); | 66 | printk(KERN_INFO "%lu pages pagetables\n", |
67 | global_page_state(NR_PAGETABLE)); | ||
67 | } | 68 | } |
68 | 69 | ||
69 | /* | 70 | /* |
diff --git a/arch/um/kernel/skas/mmu.c b/arch/um/kernel/skas/mmu.c index c5c9885a8297..624ca238d1fd 100644 --- a/arch/um/kernel/skas/mmu.c +++ b/arch/um/kernel/skas/mmu.c | |||
@@ -152,7 +152,7 @@ void destroy_context_skas(struct mm_struct *mm) | |||
152 | free_page(mmu->id.stack); | 152 | free_page(mmu->id.stack); |
153 | pte_lock_deinit(virt_to_page(mmu->last_page_table)); | 153 | pte_lock_deinit(virt_to_page(mmu->last_page_table)); |
154 | pte_free_kernel((pte_t *) mmu->last_page_table); | 154 | pte_free_kernel((pte_t *) mmu->last_page_table); |
155 | dec_page_state(nr_page_table_pages); | 155 | dec_zone_page_state(virt_to_page(mmu->last_page_table), NR_PAGETABLE); |
156 | #ifdef CONFIG_3_LEVEL_PGTABLES | 156 | #ifdef CONFIG_3_LEVEL_PGTABLES |
157 | pmd_free((pmd_t *) mmu->last_pmd); | 157 | pmd_free((pmd_t *) mmu->last_pmd); |
158 | #endif | 158 | #endif |