By using the maple tree and the maple tree state, the vmacache is no longer beneficial and is complicating the VMA code. Remove the vmacache to reduce the work in keeping it up to date and code complexity.
Showing the changes to kernel/debug/debug_core.c (1 of 17 files). Show all
Unified · Split
| @@ -50,7 +50,6 @@ · 49 unmodified lines | |||
| 50 | #include <linux/pid.h> | 50 | #include <linux/pid.h> |
| 51 | #include <linux/smp.h> | 51 | #include <linux/smp.h> |
| 52 | #include <linux/mm.h> | 52 | #include <linux/mm.h> |
| 53 | #include <linux/vmacache.h> | ||
| 54 | #include <linux/rcupdate.h> | 53 | #include <linux/rcupdate.h> |
| 55 | #include <linux/irq.h> | 54 | #include <linux/irq.h> |
| 56 | #include <linux/security.h> | 55 | #include <linux/security.h> |
| @@ -283,17 +282,6 @@ static void kgdb_flush_swbreak_addr(unsigned long addr) · 226 unmodified lines | |||
| 283 | if (!CACHE_FLUSH_IS_SAFE) | 282 | if (!CACHE_FLUSH_IS_SAFE) |
| 284 | return; | 283 | return; |
| 285 | 284 | ||
| 286 | if (current->mm) { | ||
| 287 | int i; | ||
| 288 | |||
| 289 | for (i = 0; i < VMACACHE_SIZE; i++) { | ||
| 290 | if (!current->vmacache.vmas[i]) | ||
| 291 | continue; | ||
| 292 | flush_cache_range(current->vmacache.vmas[i], | ||
| 293 | addr, addr + BREAK_INSTR_SIZE); | ||
| 294 | } | ||
| 295 | } | ||
| 296 | |||
| 297 | /* Force flush instruction cache if it was outside the mm */ | 285 | /* Force flush instruction cache if it was outside the mm */ |
| 298 | flush_icache_range(addr, addr + BREAK_INSTR_SIZE); | 286 | flush_icache_range(addr, addr + BREAK_INSTR_SIZE); |
| 299 | } | 287 | } |