memory hotplug: fix comments when adding section
authorFan Du <fan.du@intel.com>
Thu, 16 Nov 2017 01:39:21 +0000 (17:39 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Nov 2017 02:21:07 +0000 (18:21 -0800)
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>
mm/memory_hotplug.c

index fab51a6af962e9dcee1e9e2d5db45921d6eb12bd..c52aa05b106c76dd5b469bc66e0227348d7524e5 100644 (file)
@@ -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++) {