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, 3 insertions, 1 deletions
diff --git a/mm/fremap.c b/mm/fremap.c
index 7f08d10ceaff..49719a35769a 100644
--- a/mm/fremap.c
+++ b/mm/fremap.c
@@ -143,8 +143,10 @@ int install_file_pte(struct mm_struct *mm, struct vm_area_struct *vma,
143 if (!pte) 143 if (!pte)
144 goto err_unlock; 144 goto err_unlock;
145 145
146 if (!pte_none(*pte) && zap_pte(mm, vma, addr, pte)) 146 if (!pte_none(*pte) && zap_pte(mm, vma, addr, pte)) {
147 update_hiwater_rss(mm);
147 dec_mm_counter(mm, file_rss); 148 dec_mm_counter(mm, file_rss);
149 }
148 150
149 set_pte_at(mm, addr, pte, pgoff_to_pte(pgoff)); 151 set_pte_at(mm, addr, pte, pgoff_to_pte(pgoff));
150 pte_val = *pte; 152 pte_val = *pte;