aboutsummaryrefslogtreecommitdiffstats
path: root/mm/rmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/rmap.c')
-rw-r--r--mm/rmap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mm/rmap.c b/mm/rmap.c
index 278cd277bdec..73d0472884c2 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -815,9 +815,9 @@ int try_to_unmap_one(struct page *page, struct vm_area_struct *vma,
815 815
816 if (PageHWPoison(page) && !(flags & TTU_IGNORE_HWPOISON)) { 816 if (PageHWPoison(page) && !(flags & TTU_IGNORE_HWPOISON)) {
817 if (PageAnon(page)) 817 if (PageAnon(page))
818 dec_mm_counter(mm, anon_rss); 818 dec_mm_counter(mm, MM_ANONPAGES);
819 else 819 else
820 dec_mm_counter(mm, file_rss); 820 dec_mm_counter(mm, MM_FILEPAGES);
821 set_pte_at(mm, address, pte, 821 set_pte_at(mm, address, pte,
822 swp_entry_to_pte(make_hwpoison_entry(page))); 822 swp_entry_to_pte(make_hwpoison_entry(page)));
823 } else if (PageAnon(page)) { 823 } else if (PageAnon(page)) {
@@ -839,7 +839,7 @@ int try_to_unmap_one(struct page *page, struct vm_area_struct *vma,
839 list_add(&mm->mmlist, &init_mm.mmlist); 839 list_add(&mm->mmlist, &init_mm.mmlist);
840 spin_unlock(&mmlist_lock); 840 spin_unlock(&mmlist_lock);
841 } 841 }
842 dec_mm_counter(mm, anon_rss); 842 dec_mm_counter(mm, MM_ANONPAGES);
843 } else if (PAGE_MIGRATION) { 843 } else if (PAGE_MIGRATION) {
844 /* 844 /*
845 * Store the pfn of the page in a special migration 845 * Store the pfn of the page in a special migration
@@ -857,7 +857,7 @@ int try_to_unmap_one(struct page *page, struct vm_area_struct *vma,
857 entry = make_migration_entry(page, pte_write(pteval)); 857 entry = make_migration_entry(page, pte_write(pteval));
858 set_pte_at(mm, address, pte, swp_entry_to_pte(entry)); 858 set_pte_at(mm, address, pte, swp_entry_to_pte(entry));
859 } else 859 } else
860 dec_mm_counter(mm, file_rss); 860 dec_mm_counter(mm, MM_FILEPAGES);
861 861
862 page_remove_rmap(page); 862 page_remove_rmap(page);
863 page_cache_release(page); 863 page_cache_release(page);
@@ -996,7 +996,7 @@ static int try_to_unmap_cluster(unsigned long cursor, unsigned int *mapcount,
996 996
997 page_remove_rmap(page); 997 page_remove_rmap(page);
998 page_cache_release(page); 998 page_cache_release(page);
999 dec_mm_counter(mm, file_rss); 999 dec_mm_counter(mm, MM_FILEPAGES);
1000 (*mapcount)--; 1000 (*mapcount)--;
1001 } 1001 }
1002 pte_unmap_unlock(pte - 1, ptl); 1002 pte_unmap_unlock(pte - 1, ptl);