public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mm/memory_hotplug: remove reset_node_managed_pages() in hotadd_init_pgdat()
@ 2023-06-01 16:26 Haifeng Xu
  2023-06-02 11:49 ` David Hildenbrand
  0 siblings, 1 reply; 6+ messages in thread
From: Haifeng Xu @ 2023-06-01 16:26 UTC (permalink / raw)
  To: david; +Cc: osalvador, rppt, mhocko, akpm, linux-mm, linux-kernel, Haifeng Xu

managed pages has already been set to 0 in free_area_init_core_hotplug(),
so it's pointless to reset again.

Signed-off-by: Haifeng Xu <haifeng.xu@shopee.com>
---
 mm/memory_hotplug.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index 8e0fa209d533..65e385f34679 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -1210,7 +1210,6 @@ static pg_data_t __ref *hotadd_init_pgdat(int nid)
 	 * online_pages() and offline_pages().
 	 * TODO: should be in free_area_init_core_hotplug?
 	 */
-	reset_node_managed_pages(pgdat);
 	reset_node_present_pages(pgdat);
 
 	return pgdat;
-- 
2.25.1


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

end of thread, other threads:[~2023-06-07 11:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-01 16:26 [PATCH 1/2] mm/memory_hotplug: remove reset_node_managed_pages() in hotadd_init_pgdat() Haifeng Xu
2023-06-02 11:49 ` David Hildenbrand
2023-06-07  2:45   ` [PATCH v2 " Haifeng Xu
2023-06-07 10:27     ` Michal Hocko
2023-06-07 11:23     ` Mike Rapoport
2023-06-07 11:37     ` David Hildenbrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox