2017-11-15 08:45:36

by Fan Du

[permalink] [raw]
Subject: [PATCH] memory hotplug: fix comments when add section

Here, pfn_to_node should be page_to_nid.

Signed-off-by: Fan Du <[email protected]>
---
mm/memory_hotplug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index d4b5f29..c3c1c57 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -265,7 +265,7 @@ static int __meminit __add_section(int nid, unsigned long phys_start_pfn,
/*
* Make all the pages reserved so that nobody will stumble over half
* initialized state.
- * FIXME: We also have to associate it with a node because pfn_to_node
+ * FIXME: We also have to associate it with a node because page_to_nid
* relies on having page with the proper node.
*/
for (i = 0; i < PAGES_PER_SECTION; i++) {
--
1.8.3.1


From 1584527320867292219@xxx Sun Nov 19 20:23:29 +0000 2017
X-GM-THRID: 1584527320867292219
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread