Skip to content

Commit 537cf30

Browse files
xzpetertorvalds
authored andcommitted
mm/hugetlb: move flush_hugetlb_tlb_range() into hugetlb.h
Prepare for it to be called outside of mm/hugetlb.c. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Peter Xu <[email protected]> Reviewed-by: Mike Kravetz <[email protected]> Reviewed-by: Axel Rasmussen <[email protected]> Cc: Adam Ruprecht <[email protected]> Cc: Alexander Viro <[email protected]> Cc: Alexey Dobriyan <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Anshuman Khandual <[email protected]> Cc: Cannon Matthews <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Chinwen Chang <[email protected]> Cc: David Rientjes <[email protected]> Cc: "Dr . David Alan Gilbert" <[email protected]> Cc: Huang Ying <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jann Horn <[email protected]> Cc: Jerome Glisse <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Lokesh Gidra <[email protected]> Cc: "Matthew Wilcox (Oracle)" <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: "Michal Koutn" <[email protected]> Cc: Michel Lespinasse <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Mina Almasry <[email protected]> Cc: Nicholas Piggin <[email protected]> Cc: Oliver Upton <[email protected]> Cc: Shaohua Li <[email protected]> Cc: Shawn Anastasio <[email protected]> Cc: Steven Price <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent c1991e0 commit 537cf30

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

include/linux/hugetlb.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,4 +1042,12 @@ static inline __init void hugetlb_cma_check(void)
10421042

10431043
bool want_pmd_share(struct vm_area_struct *vma, unsigned long addr);
10441044

1045+
#ifndef __HAVE_ARCH_FLUSH_HUGETLB_TLB_RANGE
1046+
/*
1047+
* ARCHes with special requirements for evicting HUGETLB backing TLB entries can
1048+
* implement this.
1049+
*/
1050+
#define flush_hugetlb_tlb_range(vma, addr, end) flush_tlb_range(vma, addr, end)
1051+
#endif
1052+
10451053
#endif /* _LINUX_HUGETLB_H */

mm/hugetlb.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4996,14 +4996,6 @@ long follow_hugetlb_page(struct mm_struct *mm, struct vm_area_struct *vma,
49964996
return i ? i : err;
49974997
}
49984998

4999-
#ifndef __HAVE_ARCH_FLUSH_HUGETLB_TLB_RANGE
5000-
/*
5001-
* ARCHes with special requirements for evicting HUGETLB backing TLB entries can
5002-
* implement this.
5003-
*/
5004-
#define flush_hugetlb_tlb_range(vma, addr, end) flush_tlb_range(vma, addr, end)
5005-
#endif
5006-
50074999
unsigned long hugetlb_change_protection(struct vm_area_struct *vma,
50085000
unsigned long address, unsigned long end, pgprot_t newprot)
50095001
{

0 commit comments

Comments
 (0)