diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-02-03 05:03:31 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-03-02 02:42:25 -0500 |
commit | 314ff7851fc8ea66cbf48eaa93d8ebfb5ca084a9 (patch) | |
tree | 16567343faf3f9e94a56bbf431c1e54414cdbb6d /include/linux/vmacache.h | |
parent | 780de9dd2720debc14c501dab4dc80d1f75ad50e (diff) |
mm/vmacache, sched/headers: Introduce 'struct vmacache' and move it from <linux/sched.h> to <linux/mm_types>
The <linux/sched.h> header includes various vmacache related defines,
which are arguably misplaced.
Move them to mm_types.h and minimize the sched.h impact by putting
all task vmacache state into a new 'struct vmacache' structure.
No change in functionality.
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/vmacache.h')
-rw-r--r-- | include/linux/vmacache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/vmacache.h b/include/linux/vmacache.h index c3fa0fd43949..1081db987391 100644 --- a/include/linux/vmacache.h +++ b/include/linux/vmacache.h | |||
@@ -12,7 +12,7 @@ | |||
12 | 12 | ||
13 | static inline void vmacache_flush(struct task_struct *tsk) | 13 | static inline void vmacache_flush(struct task_struct *tsk) |
14 | { | 14 | { |
15 | memset(tsk->vmacache, 0, sizeof(tsk->vmacache)); | 15 | memset(tsk->vmacache.vmas, 0, sizeof(tsk->vmacache.vmas)); |
16 | } | 16 | } |
17 | 17 | ||
18 | extern void vmacache_flush_all(struct mm_struct *mm); | 18 | extern void vmacache_flush_all(struct mm_struct *mm); |