/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_VMACACHE_H #define __LINUX_VMACACHE_H #include <linux/sched.h> #include <linux/mm.h> /* * Hash based on the page number. Provides a good hit rate for * workloads with good locality and those with random accesses as well. */ #define VMACACHE_HASH(addr) ((addr >> PAGE_SHIFT) & VMACACHE_MASK)
static inline void vmacache_flush(struct task_struct *tsk) { memset(tsk->vmacache.vmas, 0, sizeof(tsk->vmacache.vmas)); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Davidlohr Bueso A | 28 | 87.50% | 1 | 50.00% |
Ingo Molnar | 4 | 12.50% | 1 | 50.00% |
Total | 32 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Davidlohr Bueso A | 34 | 100.00% | 1 | 100.00% |
Total | 34 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Davidlohr Bueso A | 150 | 96.77% | 1 | 33.33% |
Ingo Molnar | 4 | 2.58% | 1 | 33.33% |
Greg Kroah-Hartman | 1 | 0.65% | 1 | 33.33% |
Total | 155 | 100.00% | 3 | 100.00% |