Skip to content

mm: remove pfn_valid_within() and CONFIG_HOLES_IN_ZONE

Mike Rapoport linux-mm lkml 1 version Applied

Status from this message: [merged] mm-memory_hotplug-cleanup-after-removal-of-pfn_valid_within.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm: remove pfn_valid_within() and CONFIG_HOLES_IN_ZONEdrivers/base/node.c include/linux/mmzone.h mm/Kconfig +5 more+11 -754 repliesApplied
2/2mm: memory_hotplug: cleanup after removal of pfn_valid_within()mm/memory_hotplug.c+3 -61 replyApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDavid Hildenbrand
1/2A-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] mm: remove pfn_valid_within() and CONFIG_HOLES_IN_ZONE

From: Mike Rapoport <[email protected]>

Hi,

After recent updates to freeing unused parts of the memory map, no architecture can have holes in the memory map within a pageblock. This makes pfn_valid_within() check and CONFIG_HOLES_IN_ZONE configuration option redundant.

The first patch removes them both in a mechanical way and the second patch simplifies memory_hotplug::test_pages_in_a_zone() that had pfn_valid_within() surrounded by more logic than simple if.

Mike Rapoport (2):
mm: remove pfn_valid_within() and CONFIG_HOLES_IN_ZONE
mm: memory_hotplug: cleanup after removal of pfn_valid_within()

 drivers/base/node.c    |  2 --
 include/linux/mmzone.h | 12 ------------
 mm/Kconfig             |  3 ---
 mm/compaction.c        | 20 +++++++-------------
 mm/memory_hotplug.c    | 13 +++----------
 mm/page_alloc.c        | 24 ++----------------------
 mm/page_isolation.c    |  7 +------
 mm/page_owner.c        | 14 +-------------
 8 files changed, 14 insertions(+), 81 deletions(-)

base-commit: e73f0f0ee7541171d89f2e2491130c7771ba58d3

Signature · 1 line
2.28.0