diff options
author | Fan Du <fan.du@intel.com> | 2017-11-15 20:39:21 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-15 21:21:07 -0500 |
commit | 1b7176aea0a924ac59c6a283129d3e8eb00aa915 (patch) | |
tree | ad907d2642b8804778b325c351968b707b24c9c2 | |
parent | 0cd842f97069c68718bef21ad2dc96a0578567ec (diff) |
memory hotplug: fix comments when adding section
Here, pfn_to_node should be page_to_nid.
Link: http://lkml.kernel.org/r/1510735205-22540-1-git-send-email-fan.du@intel.com
Signed-off-by: Fan Du <fan.du@intel.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | mm/memory_hotplug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index fab51a6af962..c52aa05b106c 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, | |||
265 | /* | 265 | /* |
266 | * Make all the pages reserved so that nobody will stumble over half | 266 | * Make all the pages reserved so that nobody will stumble over half |
267 | * initialized state. | 267 | * initialized state. |
268 | * FIXME: We also have to associate it with a node because pfn_to_node | 268 | * FIXME: We also have to associate it with a node because page_to_nid |
269 | * relies on having page with the proper node. | 269 | * relies on having page with the proper node. |
270 | */ | 270 | */ |
271 | for (i = 0; i < PAGES_PER_SECTION; i++) { | 271 | for (i = 0; i < PAGES_PER_SECTION; i++) { |