aboutsummaryrefslogtreecommitdiffstats
path: root/mm/fremap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/fremap.c')
-rw-r--r--mm/fremap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/fremap.c b/mm/fremap.c
index ab23a0673c35..fd7f2a17ff3e 100644
--- a/mm/fremap.c
+++ b/mm/fremap.c
@@ -39,7 +39,7 @@ static inline void zap_pte(struct mm_struct *mm, struct vm_area_struct *vma,
39 set_page_dirty(page); 39 set_page_dirty(page);
40 page_remove_rmap(page); 40 page_remove_rmap(page);
41 page_cache_release(page); 41 page_cache_release(page);
42 dec_mm_counter(mm, rss); 42 dec_mm_counter(mm, file_rss);
43 } 43 }
44 } 44 }
45 } else { 45 } else {
@@ -95,7 +95,7 @@ int install_page(struct mm_struct *mm, struct vm_area_struct *vma,
95 95
96 zap_pte(mm, vma, addr, pte); 96 zap_pte(mm, vma, addr, pte);
97 97
98 inc_mm_counter(mm,rss); 98 inc_mm_counter(mm, file_rss);
99 flush_icache_page(vma, page); 99 flush_icache_page(vma, page);
100 set_pte_at(mm, addr, pte, mk_pte(page, prot)); 100 set_pte_at(mm, addr, pte, mk_pte(page, prot));
101 page_add_file_rmap(page); 101 page_add_file_rmap(page);