]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - mm/pgtable-generic.c
mm,thp: khugepaged: call pte flush at the time of collapse
[mirror_ubuntu-zesty-kernel.git] / mm / pgtable-generic.c
index 9d4767698a1cd6988d4f71b37ef3f384eff5b3b1..9f131c6034c548b2829066cc612b48d9ffb24276 100644 (file)
@@ -195,7 +195,9 @@ pmd_t pmdp_collapse_flush(struct vm_area_struct *vma, unsigned long address,
        VM_BUG_ON(address & ~HPAGE_PMD_MASK);
        VM_BUG_ON(pmd_trans_huge(*pmdp));
        pmd = pmdp_huge_get_and_clear(vma->vm_mm, address, pmdp);
-       flush_pmd_tlb_range(vma, address, address + HPAGE_PMD_SIZE);
+
+       /* collapse entails shooting down ptes not pmd */
+       flush_tlb_range(vma, address, address + HPAGE_PMD_SIZE);
        return pmd;
 }
 #endif