]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/hugetlb.c
hugetlbfs: add missing TLB flush to hugetlb_cow()
[linux-2.6-omap-h63xx.git] / mm / hugetlb.c
index d36e1f11a5f267d441ffda665d4b6a6275c3d451..262d0a93d2b6d45112975357374496bf29d3138b 100644 (file)
@@ -892,6 +892,7 @@ static int hugetlb_cow(struct mm_struct *mm, struct vm_area_struct *vma,
        ptep = huge_pte_offset(mm, address & HPAGE_MASK);
        if (likely(pte_same(*ptep, pte))) {
                /* Break COW */
+               huge_ptep_clear_flush(vma, address, ptep);
                set_huge_pte_at(mm, address, ptep,
                                make_huge_pte(vma, new_page, 1));
                /* Make the old page be freed below */