diff options
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r-- | mm/hugetlb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index d36e1f11a5f2..262d0a93d2b6 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c | |||
@@ -892,6 +892,7 @@ static int hugetlb_cow(struct mm_struct *mm, struct vm_area_struct *vma, | |||
892 | ptep = huge_pte_offset(mm, address & HPAGE_MASK); | 892 | ptep = huge_pte_offset(mm, address & HPAGE_MASK); |
893 | if (likely(pte_same(*ptep, pte))) { | 893 | if (likely(pte_same(*ptep, pte))) { |
894 | /* Break COW */ | 894 | /* Break COW */ |
895 | huge_ptep_clear_flush(vma, address, ptep); | ||
895 | set_huge_pte_at(mm, address, ptep, | 896 | set_huge_pte_at(mm, address, ptep, |
896 | make_huge_pte(vma, new_page, 1)); | 897 | make_huge_pte(vma, new_page, 1)); |
897 | /* Make the old page be freed below */ | 898 | /* Make the old page be freed below */ |