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.
Showing the changes to kernel/debug/debug_core.c (1 of 6 files). Show all
Unified · Split
| @@ -232,9 +232,9 @@ static void kgdb_flush_swbreak_addr(unsigned long addr) · 231 unmodified lines | |||
| 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 | } |