diff options
author | Ingo Molnar <mingo@kernel.org> | 2018-10-23 06:30:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-10-23 06:30:19 -0400 |
commit | dda93b45389f025fd3422d22cc31cc1ea6040305 (patch) | |
tree | 44a856744843e24ed1baf6ca4edb1be04809a606 /include/linux/hugetlb.h | |
parent | 2e62024c265aa69315ed02835623740030435380 (diff) | |
parent | b61b8bba18fe2b63d38fdaf9b83de25e2d787dfe (diff) |
Merge branch 'x86/cache' into perf/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/hugetlb.h')
-rw-r--r-- | include/linux/hugetlb.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 6b68e345f0ca..087fd5f48c91 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
@@ -140,6 +140,8 @@ pte_t *huge_pte_alloc(struct mm_struct *mm, | |||
140 | pte_t *huge_pte_offset(struct mm_struct *mm, | 140 | pte_t *huge_pte_offset(struct mm_struct *mm, |
141 | unsigned long addr, unsigned long sz); | 141 | unsigned long addr, unsigned long sz); |
142 | int huge_pmd_unshare(struct mm_struct *mm, unsigned long *addr, pte_t *ptep); | 142 | int huge_pmd_unshare(struct mm_struct *mm, unsigned long *addr, pte_t *ptep); |
143 | void adjust_range_if_pmd_sharing_possible(struct vm_area_struct *vma, | ||
144 | unsigned long *start, unsigned long *end); | ||
143 | struct page *follow_huge_addr(struct mm_struct *mm, unsigned long address, | 145 | struct page *follow_huge_addr(struct mm_struct *mm, unsigned long address, |
144 | int write); | 146 | int write); |
145 | struct page *follow_huge_pd(struct vm_area_struct *vma, | 147 | struct page *follow_huge_pd(struct vm_area_struct *vma, |
@@ -170,6 +172,18 @@ static inline unsigned long hugetlb_total_pages(void) | |||
170 | return 0; | 172 | return 0; |
171 | } | 173 | } |
172 | 174 | ||
175 | static inline int huge_pmd_unshare(struct mm_struct *mm, unsigned long *addr, | ||
176 | pte_t *ptep) | ||
177 | { | ||
178 | return 0; | ||
179 | } | ||
180 | |||
181 | static inline void adjust_range_if_pmd_sharing_possible( | ||
182 | struct vm_area_struct *vma, | ||
183 | unsigned long *start, unsigned long *end) | ||
184 | { | ||
185 | } | ||
186 | |||
173 | #define follow_hugetlb_page(m,v,p,vs,a,b,i,w,n) ({ BUG(); 0; }) | 187 | #define follow_hugetlb_page(m,v,p,vs,a,b,i,w,n) ({ BUG(); 0; }) |
174 | #define follow_huge_addr(mm, addr, write) ERR_PTR(-EINVAL) | 188 | #define follow_huge_addr(mm, addr, write) ERR_PTR(-EINVAL) |
175 | #define copy_hugetlb_page_range(src, dst, vma) ({ BUG(); 0; }) | 189 | #define copy_hugetlb_page_range(src, dst, vma) ({ BUG(); 0; }) |