[PATCH v2 0/2] make hugetlb_optimize_vmemmap compatible with memmap_on_memory

From: Muchun Song
Date: Thu May 19 2022 - 22:56:39 EST


This series makes hugetlb_optimize_vmemmap compatible with memmap_on_memory
and is based on next-20220518. The reason refers to the patch 2's commit log.

v2:
- Fix compile error when !CONFIG_ZONE_DEVICE reported by kernel test robot.

Muchun Song (2):
mm: memory_hotplug: enumerate all supported section flags
mm: memory_hotplug: introduce SECTION_CANNOT_OPTIMIZE_VMEMMAP

Documentation/admin-guide/kernel-parameters.txt | 22 ++++----
Documentation/admin-guide/sysctl/vm.rst | 5 +-
include/linux/kconfig.h | 1 +
include/linux/memory_hotplug.h | 9 ----
include/linux/mmzone.h | 71 ++++++++++++++++++++++---
mm/hugetlb_vmemmap.c | 28 +++++++---
mm/memory_hotplug.c | 28 +++++-----
mm/sparse.c | 8 +++
8 files changed, 119 insertions(+), 53 deletions(-)

--
2.11.0