diff options
-rw-r--r-- | include/asm-ia64/hugetlb.h | 5 | ||||
-rw-r--r-- | include/asm-powerpc/hugetlb.h | 5 | ||||
-rw-r--r-- | include/asm-sh/hugetlb.h | 5 | ||||
-rw-r--r-- | include/asm-sparc64/hugetlb.h | 5 | ||||
-rw-r--r-- | include/asm-x86/hugetlb.h | 5 | ||||
-rw-r--r-- | mm/hugetlb.c | 1 |
6 files changed, 26 insertions, 0 deletions
diff --git a/include/asm-ia64/hugetlb.h b/include/asm-ia64/hugetlb.h index f0ee14c6e172..5f5434374972 100644 --- a/include/asm-ia64/hugetlb.h +++ b/include/asm-ia64/hugetlb.h | |||
@@ -34,4 +34,9 @@ static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, | |||
34 | return ptep_get_and_clear(mm, addr, ptep); | 34 | return ptep_get_and_clear(mm, addr, ptep); |
35 | } | 35 | } |
36 | 36 | ||
37 | static inline void huge_ptep_clear_flush(struct vm_area_struct *vma, | ||
38 | unsigned long addr, pte_t *ptep) | ||
39 | { | ||
40 | } | ||
41 | |||
37 | #endif /* _ASM_IA64_HUGETLB_H */ | 42 | #endif /* _ASM_IA64_HUGETLB_H */ |
diff --git a/include/asm-powerpc/hugetlb.h b/include/asm-powerpc/hugetlb.h index f537993c5c87..bead2ff78493 100644 --- a/include/asm-powerpc/hugetlb.h +++ b/include/asm-powerpc/hugetlb.h | |||
@@ -34,4 +34,9 @@ static inline void hugetlb_prefault_arch_hook(struct mm_struct *mm) | |||
34 | { | 34 | { |
35 | } | 35 | } |
36 | 36 | ||
37 | static inline void huge_ptep_clear_flush(struct vm_area_struct *vma, | ||
38 | unsigned long addr, pte_t *ptep) | ||
39 | { | ||
40 | } | ||
41 | |||
37 | #endif /* _ASM_POWERPC_HUGETLB_H */ | 42 | #endif /* _ASM_POWERPC_HUGETLB_H */ |
diff --git a/include/asm-sh/hugetlb.h b/include/asm-sh/hugetlb.h index 885218d2c844..d1ed476467a1 100644 --- a/include/asm-sh/hugetlb.h +++ b/include/asm-sh/hugetlb.h | |||
@@ -46,4 +46,9 @@ static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, | |||
46 | return ptep_get_and_clear(mm, addr, ptep); | 46 | return ptep_get_and_clear(mm, addr, ptep); |
47 | } | 47 | } |
48 | 48 | ||
49 | static inline void huge_ptep_clear_flush(struct vm_area_struct *vma, | ||
50 | unsigned long addr, pte_t *ptep) | ||
51 | { | ||
52 | } | ||
53 | |||
49 | #endif /* _ASM_SH_HUGETLB_H */ | 54 | #endif /* _ASM_SH_HUGETLB_H */ |
diff --git a/include/asm-sparc64/hugetlb.h b/include/asm-sparc64/hugetlb.h index 7e111cfd31ea..0b9e44c85c5d 100644 --- a/include/asm-sparc64/hugetlb.h +++ b/include/asm-sparc64/hugetlb.h | |||
@@ -39,4 +39,9 @@ static inline void hugetlb_free_pgd_range(struct mmu_gather **tlb, | |||
39 | free_pgd_range(tlb, addr, end, floor, ceiling); | 39 | free_pgd_range(tlb, addr, end, floor, ceiling); |
40 | } | 40 | } |
41 | 41 | ||
42 | static inline void huge_ptep_clear_flush(struct vm_area_struct *vma, | ||
43 | unsigned long addr, pte_t *ptep) | ||
44 | { | ||
45 | } | ||
46 | |||
42 | #endif /* _ASM_SPARC64_HUGETLB_H */ | 47 | #endif /* _ASM_SPARC64_HUGETLB_H */ |
diff --git a/include/asm-x86/hugetlb.h b/include/asm-x86/hugetlb.h index ec21cedd7149..f57236dfc8f4 100644 --- a/include/asm-x86/hugetlb.h +++ b/include/asm-x86/hugetlb.h | |||
@@ -46,4 +46,9 @@ static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, | |||
46 | return ptep_get_and_clear(mm, addr, ptep); | 46 | return ptep_get_and_clear(mm, addr, ptep); |
47 | } | 47 | } |
48 | 48 | ||
49 | static inline void huge_ptep_clear_flush(struct vm_area_struct *vma, | ||
50 | unsigned long addr, pte_t *ptep) | ||
51 | { | ||
52 | } | ||
53 | |||
49 | #endif /* _ASM_X86_HUGETLB_H */ | 54 | #endif /* _ASM_X86_HUGETLB_H */ |
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 */ |