* [merged mm-stable] memory_hotplug-optimise-try_offline_memory_block.patch removed from -mm tree
@ 2025-11-20 21:44 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-11-20 21:44 UTC (permalink / raw)
To: mm-commits, osalvador, david, willy, akpm
The quilt patch titled
Subject: memory_hotplug: optimise try_offline_memory_block()
has been removed from the -mm tree. Its filename was
memory_hotplug-optimise-try_offline_memory_block.patch
This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Subject: memory_hotplug: optimise try_offline_memory_block()
Date: Thu, 6 Nov 2025 20:14:50 +0000
Extract the zone number directly from the page instead of using the page's
zone number to look up the zone and asking the zone what its number is.
Link: https://lkml.kernel.org/r/20251106201452.2292631-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: David Hildenbrand <david@kernel.org>
Cc: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/memory_hotplug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/mm/memory_hotplug.c~memory_hotplug-optimise-try_offline_memory_block
+++ a/mm/memory_hotplug.c
@@ -2327,7 +2327,7 @@ static int try_offline_memory_block(stru
* by offlining code ... so we don't care about that.
*/
page = pfn_to_online_page(section_nr_to_pfn(mem->start_section_nr));
- if (page && zone_idx(page_zone(page)) == ZONE_MOVABLE)
+ if (page && page_zonenum(page) == ZONE_MOVABLE)
online_type = MMOP_ONLINE_MOVABLE;
rc = device_offline(&mem->dev);
_
Patches currently in -mm which might be from willy@infradead.org are
mm-tweak-__vma_enter_locked.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-11-20 21:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-20 21:44 [merged mm-stable] memory_hotplug-optimise-try_offline_memory_block.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.