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/mm.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/mm.h')
-rw-r--r-- | include/linux/mm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index a61ebe8ad4ca..0416a7204be3 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -2455,6 +2455,12 @@ static inline struct vm_area_struct *find_exact_vma(struct mm_struct *mm, | |||
2455 | return vma; | 2455 | return vma; |
2456 | } | 2456 | } |
2457 | 2457 | ||
2458 | static inline bool range_in_vma(struct vm_area_struct *vma, | ||
2459 | unsigned long start, unsigned long end) | ||
2460 | { | ||
2461 | return (vma && vma->vm_start <= start && end <= vma->vm_end); | ||
2462 | } | ||
2463 | |||
2458 | #ifdef CONFIG_MMU | 2464 | #ifdef CONFIG_MMU |
2459 | pgprot_t vm_get_page_prot(unsigned long vm_flags); | 2465 | pgprot_t vm_get_page_prot(unsigned long vm_flags); |
2460 | void vma_set_page_prot(struct vm_area_struct *vma); | 2466 | void vma_set_page_prot(struct vm_area_struct *vma); |