From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755780AbdKOImx (ORCPT ); Wed, 15 Nov 2017 03:42:53 -0500 Received: from mga06.intel.com ([134.134.136.31]:5649 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752551AbdKOImr (ORCPT ); Wed, 15 Nov 2017 03:42:47 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,398,1505804400"; d="scan'208";a="175969642" From: Fan Du To: mhocko@kernel.org Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Fan Du Subject: [PATCH] memory hotplug: fix comments when add section Date: Wed, 15 Nov 2017 16:40:05 +0800 Message-Id: <1510735205-22540-1-git-send-email-fan.du@intel.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here, pfn_to_node should be page_to_nid. Signed-off-by: Fan Du --- 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