diff options
| author | Tony Lindgren <tony@atomide.com> | 2018-08-28 12:58:03 -0400 |
|---|---|---|
| committer | Tony Lindgren <tony@atomide.com> | 2018-08-28 12:58:03 -0400 |
| commit | ea4d65f14f6aaa53e379b93c5544245ef081b3e7 (patch) | |
| tree | a15485f4f1cf547a52b31fa8e16e14b9579b7200 /include/linux/vmacache.h | |
| parent | ce32d59ee2cd036f6e8a6ed17a06a0b0bec5c67c (diff) | |
| parent | 496f3347d834aec91c38b45d6249ed00f58ad233 (diff) | |
Merge branch 'perm-fix' into omap-for-v4.19/fixes-v2
Diffstat (limited to 'include/linux/vmacache.h')
| -rw-r--r-- | include/linux/vmacache.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/vmacache.h b/include/linux/vmacache.h index a5b3aa8d281f..3e9a963edd6a 100644 --- a/include/linux/vmacache.h +++ b/include/linux/vmacache.h | |||
| @@ -5,12 +5,6 @@ | |||
| 5 | #include <linux/sched.h> | 5 | #include <linux/sched.h> |
| 6 | #include <linux/mm.h> | 6 | #include <linux/mm.h> |
| 7 | 7 | ||
| 8 | /* | ||
| 9 | * Hash based on the page number. Provides a good hit rate for | ||
| 10 | * workloads with good locality and those with random accesses as well. | ||
| 11 | */ | ||
| 12 | #define VMACACHE_HASH(addr) ((addr >> PAGE_SHIFT) & VMACACHE_MASK) | ||
| 13 | |||
| 14 | static inline void vmacache_flush(struct task_struct *tsk) | 8 | static inline void vmacache_flush(struct task_struct *tsk) |
| 15 | { | 9 | { |
| 16 | memset(tsk->vmacache.vmas, 0, sizeof(tsk->vmacache.vmas)); | 10 | memset(tsk->vmacache.vmas, 0, sizeof(tsk->vmacache.vmas)); |
