Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94046
b: refs/heads/master
c: 8fe627e
h: refs/heads/master
v: v3
  • Loading branch information
Gerald Schaefer authored and Linus Torvalds committed Apr 28, 2008
1 parent 2966b68 commit 281e4dc
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d779079bfd1196e077bb1d0a906c37ae770b102
refs/heads/master: 8fe627ec5b7c47b1654dff50536d9709863295a3
5 changes: 5 additions & 0 deletions trunk/include/asm-ia64/hugetlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@ static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm,
return ptep_get_and_clear(mm, addr, ptep);
}

static inline void huge_ptep_clear_flush(struct vm_area_struct *vma,
unsigned long addr, pte_t *ptep)
{
}

#endif /* _ASM_IA64_HUGETLB_H */
5 changes: 5 additions & 0 deletions trunk/include/asm-powerpc/hugetlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@ static inline void hugetlb_prefault_arch_hook(struct mm_struct *mm)
{
}

static inline void huge_ptep_clear_flush(struct vm_area_struct *vma,
unsigned long addr, pte_t *ptep)
{
}

#endif /* _ASM_POWERPC_HUGETLB_H */
5 changes: 5 additions & 0 deletions trunk/include/asm-sh/hugetlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,9 @@ static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm,
return ptep_get_and_clear(mm, addr, ptep);
}

static inline void huge_ptep_clear_flush(struct vm_area_struct *vma,
unsigned long addr, pte_t *ptep)
{
}

#endif /* _ASM_SH_HUGETLB_H */
5 changes: 5 additions & 0 deletions trunk/include/asm-sparc64/hugetlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,9 @@ static inline void hugetlb_free_pgd_range(struct mmu_gather **tlb,
free_pgd_range(tlb, addr, end, floor, ceiling);
}

static inline void huge_ptep_clear_flush(struct vm_area_struct *vma,
unsigned long addr, pte_t *ptep)
{
}

#endif /* _ASM_SPARC64_HUGETLB_H */
5 changes: 5 additions & 0 deletions trunk/include/asm-x86/hugetlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,9 @@ static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm,
return ptep_get_and_clear(mm, addr, ptep);
}

static inline void huge_ptep_clear_flush(struct vm_area_struct *vma,
unsigned long addr, pte_t *ptep)
{
}

#endif /* _ASM_X86_HUGETLB_H */
1 change: 1 addition & 0 deletions trunk/mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 281e4dc

Please sign in to comment.