]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
vmacache removal
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 29 Jan 2021 14:38:25 +0000 (09:38 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 29 Jan 2021 14:38:25 +0000 (09:38 -0500)
Some places were missed

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
arch/s390/configs/debug_defconfig
include/linux/mm_types_task.h
include/linux/vm_event_item.h
include/linux/vmstat.h
lib/Kconfig.debug
mm/vmstat.c

index fe6f529ac82cf27bf23e3d50b1a4017d39d9f746..91dfc9395b582a894bf5db4121ddceb48d7e738a 100644 (file)
@@ -790,7 +790,6 @@ CONFIG_SLUB_DEBUG_ON=y
 CONFIG_SLUB_STATS=y
 CONFIG_DEBUG_STACK_USAGE=y
 CONFIG_DEBUG_VM=y
-CONFIG_DEBUG_VM_VMACACHE=y
 CONFIG_DEBUG_VM_RB=y
 CONFIG_DEBUG_VM_PGFLAGS=y
 CONFIG_DEBUG_MEMORY_INIT=y
index 33c9fa4d4f66aaee5ddfa6d9f0918cee398834b0..0bb4b6da9993942e320c424990ea8397149b37c8 100644 (file)
                IS_ENABLED(CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK))
 #define ALLOC_SPLIT_PTLOCKS    (SPINLOCK_SIZE > BITS_PER_LONG/8)
 
-/*
- * The per task VMA cache array:
- */
-#define VMACACHE_BITS 2
-#define VMACACHE_SIZE (1U << VMACACHE_BITS)
-#define VMACACHE_MASK (VMACACHE_SIZE - 1)
-
 /*
  * When updating this, please also update struct resident_page_types[] in
  * kernel/fork.c
index 18e75974d4e37bd76f6b31d88951a9cededaec63..bcc46b40f7dc65c727f22593deedac3efd631ad8 100644 (file)
@@ -113,10 +113,6 @@ enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT,
                NR_TLB_LOCAL_FLUSH_ALL,
                NR_TLB_LOCAL_FLUSH_ONE,
 #endif /* CONFIG_DEBUG_TLBFLUSH */
-#ifdef CONFIG_DEBUG_VM_VMACACHE
-               VMACACHE_FIND_CALLS,
-               VMACACHE_FIND_HITS,
-#endif
 #ifdef CONFIG_SWAP
                SWAP_RA,
                SWAP_RA_HIT,
index 322dcbfcc933789a09793ca616dbfdaa2b2d2d29..f1e1f78eb31473778ce968291d4280d194d8cc76 100644 (file)
@@ -125,12 +125,6 @@ static inline void vm_events_fold_cpu(int cpu)
 #define count_vm_tlb_events(x, y) do { (void)(y); } while (0)
 #endif
 
-#ifdef CONFIG_DEBUG_VM_VMACACHE
-#define count_vm_vmacache_event(x) count_vm_event(x)
-#else
-#define count_vm_vmacache_event(x) do {} while (0)
-#endif
-
 #define __count_zid_vm_events(item, zid, delta) \
        __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta)
 
index 5009b9982e6a9fe30322e899005fe7941fdeff99..b303c7c6700e5e63b7502b3ac8776c50fa8abd81 100644 (file)
@@ -742,16 +742,6 @@ config DEBUG_VM
 
          If unsure, say N.
 
-config DEBUG_VM_VMACACHE
-       bool "Debug VMA caching"
-       depends on DEBUG_VM
-       help
-         Enable this to turn on VMA caching debug information. Doing so
-         can cause significant overhead, so only enable it in non-production
-         environments.
-
-         If unsure, say N.
-
 config DEBUG_VM_RB
        bool "Debug VM red-black trees"
        depends on DEBUG_VM
index 698bc0bc18d146942151348bac4012dea31b09bb..13489b7e5217a4dcd807de59dee630c66d5ca37b 100644 (file)
@@ -1342,10 +1342,6 @@ const char * const vmstat_text[] = {
        "nr_tlb_local_flush_one",
 #endif /* CONFIG_DEBUG_TLBFLUSH */
 
-#ifdef CONFIG_DEBUG_VM_VMACACHE
-       "vmacache_find_calls",
-       "vmacache_find_hits",
-#endif
 #ifdef CONFIG_SWAP
        "swap_ra",
        "swap_ra_hit",