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 /kernel | |
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 'kernel')
-rw-r--r-- | kernel/debug/debug_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c index 79517e5549f1..a603ef28f70c 100644 --- a/kernel/debug/debug_core.c +++ b/kernel/debug/debug_core.c | |||
@@ -232,9 +232,9 @@ static void kgdb_flush_swbreak_addr(unsigned long addr) | |||
232 | int i; | 232 | int i; |
233 | 233 | ||
234 | for (i = 0; i < VMACACHE_SIZE; i++) { | 234 | for (i = 0; i < VMACACHE_SIZE; i++) { |
235 | if (!current->vmacache[i]) | 235 | if (!current->vmacache.vmas[i]) |
236 | continue; | 236 | continue; |
237 | flush_cache_range(current->vmacache[i], | 237 | flush_cache_range(current->vmacache.vmas[i], |
238 | addr, addr + BREAK_INSTR_SIZE); | 238 | addr, addr + BREAK_INSTR_SIZE); |
239 | } | 239 | } |
240 | } | 240 | } |