History

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.

Ingo Molnar committed 9 years ago

Commit 314ff781 parent 780de9d6 files · +25 −16Browse files

Showing the changes to kernel/debug/debug_core.c (1 of 6 files). Show all

Unified · Split

kernel/debug/debug_core.c+2−2
@@ -232,9 +232,9 @@ static void kgdb_flush_swbreak_addr(unsigned long addr) · 231 unmodified lines
232232 int i;
233233
234234 for (i = 0; i < VMACACHE_SIZE; i++) {
235− if (!current->vmacache[i])
235+ if (!current->vmacache.vmas[i])
236236 continue;
237− flush_cache_range(current->vmacache[i],
237+ flush_cache_range(current->vmacache.vmas[i],
238238 addr, addr + BREAK_INSTR_SIZE);
239239 }
240240 }