]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
memory_hotplug: optimise try_offline_memory_block()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 6 Nov 2025 20:14:50 +0000 (20:14 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 20 Nov 2025 21:43:57 +0000 (13:43 -0800)
commit20605eb5bbea8184d2bb356d7e1419c8ec359efb
tree85967083920c3d436bc29b7ad205ebd00f7ddee8
parentc537f0dd30344434b6e7585768d3fa38190d2d0c
memory_hotplug: optimise try_offline_memory_block()

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