diff options
Diffstat (limited to 'mm/huge_memory.c')
-rw-r--r-- | mm/huge_memory.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 964fc5a2edd2..5a595554bd8c 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c | |||
@@ -1026,7 +1026,7 @@ out: | |||
1026 | } | 1026 | } |
1027 | 1027 | ||
1028 | int zap_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, | 1028 | int zap_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, |
1029 | pmd_t *pmd) | 1029 | pmd_t *pmd, unsigned long addr) |
1030 | { | 1030 | { |
1031 | int ret = 0; | 1031 | int ret = 0; |
1032 | 1032 | ||
@@ -1042,6 +1042,7 @@ int zap_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, | |||
1042 | pgtable = get_pmd_huge_pte(tlb->mm); | 1042 | pgtable = get_pmd_huge_pte(tlb->mm); |
1043 | page = pmd_page(*pmd); | 1043 | page = pmd_page(*pmd); |
1044 | pmd_clear(pmd); | 1044 | pmd_clear(pmd); |
1045 | tlb_remove_pmd_tlb_entry(tlb, pmd, addr); | ||
1045 | page_remove_rmap(page); | 1046 | page_remove_rmap(page); |
1046 | VM_BUG_ON(page_mapcount(page) < 0); | 1047 | VM_BUG_ON(page_mapcount(page) < 0); |
1047 | add_mm_counter(tlb->mm, MM_ANONPAGES, -HPAGE_PMD_NR); | 1048 | add_mm_counter(tlb->mm, MM_ANONPAGES, -HPAGE_PMD_NR); |