#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, 0, sizeof(tsk->vmacache)); }Contributors
Person | Tokens | Prop | Commits | CommitProp | |
davidlohr bueso | davidlohr bueso | 28 | 100.00% | 1 | 100.00% |
Total | 28 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
davidlohr bueso | davidlohr bueso | 34 | 100.00% | 1 | 100.00% |
Total | 34 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
davidlohr bueso | davidlohr bueso | 150 | 100.00% | 1 | 100.00% |
Total | 150 | 100.00% | 1 | 100.00% |