History

mm: remove vmacache

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.

Liam R. Howlett committed 4 years ago

Commit 7964cf81 parent 4dd1b8417 files · +9 −267Browse files

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

Unified · Split

kernel/debug/debug_core.c+0−12
@@ -50,7 +50,6 @@ · 49 unmodified lines
5050 #include <linux/pid.h>
5151 #include <linux/smp.h>
5252 #include <linux/mm.h>
53−#include <linux/vmacache.h>
5453 #include <linux/rcupdate.h>
5554 #include <linux/irq.h>
5655 #include <linux/security.h>
@@ -283,17 +282,6 @@ static void kgdb_flush_swbreak_addr(unsigned long addr) · 226 unmodified lines
283282 if (!CACHE_FLUSH_IS_SAFE)
284283 return;
285284
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−
297285 /* Force flush instruction cache if it was outside the mm */
298286 flush_icache_range(addr, addr + BREAK_INSTR_SIZE);
299287 }