From: Andrea Arcangeli <aarcange@xxxxxxxxxx> The interface changed slightly. Signed-off-by: Andrea Arcangeli <aarcange@xxxxxxxxxx> Acked-by: Rik van Riel <riel@xxxxxxxxxx> --- mm/huge_memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -251,7 +251,7 @@ static int __do_huge_pmd_anonymous_page( page_add_new_anon_rmap(page, vma, haddr); set_pmd_at(mm, haddr, pmd, entry); prepare_pmd_huge_pte(pgtable, mm); - add_mm_counter(mm, anon_rss, HPAGE_PMD_NR); + add_mm_counter(mm, MM_ANONPAGES, HPAGE_PMD_NR); spin_unlock(&mm->page_table_lock); } @@ -321,7 +321,7 @@ int copy_huge_pmd(struct mm_struct *dst_ VM_BUG_ON(!PageHead(src_page)); get_page(src_page); page_dup_rmap(src_page); - add_mm_counter(dst_mm, anon_rss, HPAGE_PMD_NR); + add_mm_counter(dst_mm, MM_ANONPAGES, HPAGE_PMD_NR); pmdp_set_wrprotect(src_mm, addr, src_pmd); pmd = pmd_mkold(pmd_wrprotect(pmd)); @@ -562,7 +562,7 @@ int zap_huge_pmd(struct mmu_gather *tlb, pmd_clear(pmd); page_remove_rmap(page); VM_BUG_ON(page_mapcount(page) < 0); - add_mm_counter(tlb->mm, anon_rss, -HPAGE_PMD_NR); + add_mm_counter(tlb->mm, MM_ANONPAGES, -HPAGE_PMD_NR); spin_unlock(&tlb->mm->page_table_lock); VM_BUG_ON(!PageHead(page)); tlb_remove_page(tlb, page); -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>