diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/memory.c | 4 | ||||
-rw-r--r-- | mm/page_alloc.c | 2 | ||||
-rw-r--r-- | mm/vmstat.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/mm/memory.c b/mm/memory.c index 247b5c312b9b..1a78791590fa 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -126,7 +126,7 @@ static void free_pte_range(struct mmu_gather *tlb, pmd_t *pmd) | |||
126 | pmd_clear(pmd); | 126 | pmd_clear(pmd); |
127 | pte_lock_deinit(page); | 127 | pte_lock_deinit(page); |
128 | pte_free_tlb(tlb, page); | 128 | pte_free_tlb(tlb, page); |
129 | dec_page_state(nr_page_table_pages); | 129 | dec_zone_page_state(page, NR_PAGETABLE); |
130 | tlb->mm->nr_ptes--; | 130 | tlb->mm->nr_ptes--; |
131 | } | 131 | } |
132 | 132 | ||
@@ -311,7 +311,7 @@ int __pte_alloc(struct mm_struct *mm, pmd_t *pmd, unsigned long address) | |||
311 | pte_free(new); | 311 | pte_free(new); |
312 | } else { | 312 | } else { |
313 | mm->nr_ptes++; | 313 | mm->nr_ptes++; |
314 | inc_page_state(nr_page_table_pages); | 314 | inc_zone_page_state(new, NR_PAGETABLE); |
315 | pmd_populate(mm, pmd, new); | 315 | pmd_populate(mm, pmd, new); |
316 | } | 316 | } |
317 | spin_unlock(&mm->page_table_lock); | 317 | spin_unlock(&mm->page_table_lock); |
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index a38a11cfb483..ed3f2a7b4071 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -1320,7 +1320,7 @@ void show_free_areas(void) | |||
1320 | nr_free_pages(), | 1320 | nr_free_pages(), |
1321 | global_page_state(NR_SLAB), | 1321 | global_page_state(NR_SLAB), |
1322 | global_page_state(NR_FILE_MAPPED), | 1322 | global_page_state(NR_FILE_MAPPED), |
1323 | ps.nr_page_table_pages); | 1323 | global_page_state(NR_PAGETABLE)); |
1324 | 1324 | ||
1325 | for_each_zone(zone) { | 1325 | for_each_zone(zone) { |
1326 | int i; | 1326 | int i; |
diff --git a/mm/vmstat.c b/mm/vmstat.c index dc9e69209223..292a35fe56c9 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
@@ -399,12 +399,12 @@ static char *vmstat_text[] = { | |||
399 | "nr_mapped", | 399 | "nr_mapped", |
400 | "nr_file_pages", | 400 | "nr_file_pages", |
401 | "nr_slab", | 401 | "nr_slab", |
402 | "nr_page_table_pages", | ||
402 | 403 | ||
403 | /* Page state */ | 404 | /* Page state */ |
404 | "nr_dirty", | 405 | "nr_dirty", |
405 | "nr_writeback", | 406 | "nr_writeback", |
406 | "nr_unstable", | 407 | "nr_unstable", |
407 | "nr_page_table_pages", | ||
408 | 408 | ||
409 | "pgpgin", | 409 | "pgpgin", |
410 | "pgpgout", | 410 | "pgpgout", |