aboutsummaryrefslogtreecommitdiffstats
path: root/mm/rmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/rmap.c')
-rw-r--r--mm/rmap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mm/rmap.c b/mm/rmap.c
index f69d5342ce7f..4c52c56c9905 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -538,6 +538,9 @@ static int try_to_unmap_one(struct page *page, struct vm_area_struct *vma)
538 if (pte_dirty(pteval)) 538 if (pte_dirty(pteval))
539 set_page_dirty(page); 539 set_page_dirty(page);
540 540
541 /* Update high watermark before we lower rss */
542 update_hiwater_rss(mm);
543
541 if (PageAnon(page)) { 544 if (PageAnon(page)) {
542 swp_entry_t entry = { .val = page->private }; 545 swp_entry_t entry = { .val = page->private };
543 /* 546 /*
@@ -628,6 +631,9 @@ static void try_to_unmap_cluster(unsigned long cursor,
628 if (!pmd_present(*pmd)) 631 if (!pmd_present(*pmd))
629 goto out_unlock; 632 goto out_unlock;
630 633
634 /* Update high watermark before we lower rss */
635 update_hiwater_rss(mm);
636
631 for (original_pte = pte = pte_offset_map(pmd, address); 637 for (original_pte = pte = pte_offset_map(pmd, address);
632 address < end; pte++, address += PAGE_SIZE) { 638 address < end; pte++, address += PAGE_SIZE) {
633 639