linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] mm: remove pfn_valid_within() and CONFIG_HOLES_IN_ZONE
@ 2021-07-13  8:00 Mike Rapoport
  2021-07-13  8:00 ` [PATCH 1/2] " Mike Rapoport
  2021-07-13  8:00 ` [PATCH 2/2] mm: memory_hotplug: cleanup after removal of pfn_valid_within() Mike Rapoport
  0 siblings, 2 replies; 8+ messages in thread
From: Mike Rapoport @ 2021-07-13  8:00 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Greg Kroah-Hartman, Mike Rapoport, Mike Rapoport,
	Rafael J. Wysocki, linux-kernel, linux-mm

From: Mike Rapoport <rppt@linux.ibm.com>

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
-- 
2.28.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-07-13 20:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-13  8:00 [PATCH 0/2] mm: remove pfn_valid_within() and CONFIG_HOLES_IN_ZONE Mike Rapoport
2021-07-13  8:00 ` [PATCH 1/2] " Mike Rapoport
2021-07-13  9:51   ` David Hildenbrand
2021-07-13 10:22     ` Mike Rapoport
2021-07-13 10:24       ` David Hildenbrand
2021-07-13 20:02         ` Zi Yan
2021-07-13  8:00 ` [PATCH 2/2] mm: memory_hotplug: cleanup after removal of pfn_valid_within() Mike Rapoport
2021-07-13  9:54   ` David Hildenbrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).