Hi all,
This series contains a couple of small optimizations for the scanner. The
idea is to detect unsuitable collapse candidates, like mlocked VMAs or
guard PTEs, earlier in the scan and bail out to avoid wasted work ;)
Thanks,
Lance
Lance Yang (3):
mm/khugepaged: skip unsuitable VMAs earlier in
khugepaged_scan_mm_slot()
mm: clean up and expose is_guard_pte_marker()
mm/khugepaged: abort collapse scan on guard PTEs
include/linux/mm.h | 6 +++++-
include/linux/swapops.h | 6 ++++++
mm/huge_memory.c | 2 +-
mm/khugepaged.c | 26 +++++++++++++++++++++++++-
mm/madvise.c | 6 ------
5 files changed, 37 insertions(+), 9 deletions(-)
--
2.49.0