[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230601162626.1030-1-haifeng.xu@shopee.com>
Date: Thu, 1 Jun 2023 16:26:25 +0000
From: Haifeng Xu <haifeng.xu@...pee.com>
To: david@...hat.com
Cc: osalvador@...e.de, rppt@...nel.org, mhocko@...nel.org,
akpm@...ux-foundation.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, Haifeng Xu <haifeng.xu@...pee.com>
Subject: [PATCH 1/2] mm/memory_hotplug: remove reset_node_managed_pages() in hotadd_init_pgdat()
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@...pee.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
Powered by blists - more mailing lists