diff --git a/include/linux/vm_event_item.h b/include/linux/vm_event_item.h index 0fa409e827bb..5a43dc19c317 100644 --- a/include/linux/vm_event_item.h +++ b/include/linux/vm_event_item.h @@ -113,9 +113,6 @@ enum vm_event_item { PGPGIN, PGPGOUT, #ifdef CONFIG_SWAP SWAP_RA, SWAP_RA_HIT, -#endif -#ifdef CONFIG_SPECULATIVE_PAGE_FAULT - SPECULATIVE_PGFAULT, #endif NR_VM_EVENT_ITEMS }; diff --git a/mm/memory.c b/mm/memory.c index 59885e20e165..b086424815fc 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -4616,7 +4616,6 @@ int __handle_speculative_fault(struct mm_struct *mm, unsigned long address, * If there is no need to retry, don't return the vma to the caller. */ if (ret != VM_FAULT_RETRY) { - count_vm_event(SPECULATIVE_PGFAULT); put_vma(vmf.vma); *vma = NULL; } diff --git a/mm/vmstat.c b/mm/vmstat.c index 8c7e6e718a5f..10d281bfd71b 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -1300,10 +1300,7 @@ const char * const vmstat_text[] = { "swap_ra", "swap_ra_hit", #endif -#ifdef CONFIG_SPECULATIVE_PAGE_FAULT - "speculative_pgfault" -#endif -#endif /* CONFIG_VM_EVENT_COUNTERS */ +#endif /* CONFIG_VM_EVENTS_COUNTERS */ }; #endif /* CONFIG_PROC_FS || CONFIG_SYSFS || CONFIG_NUMA */