From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762352Ab3ECAJ3 (ORCPT ); Thu, 2 May 2013 20:09:29 -0400 Received: from e33.co.us.ibm.com ([32.97.110.151]:58112 "EHLO e33.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762118Ab3ECABk (ORCPT ); Thu, 2 May 2013 20:01:40 -0400 From: Cody P Schafer To: Linux MM Cc: LKML , Cody P Schafer , Simon Jeons Subject: [RFC PATCH v3 04/31] memory_hotplug: export ensure_zone_is_initialized() in mm/internal.h Date: Thu, 2 May 2013 17:00:36 -0700 Message-Id: <1367539263-19999-5-git-send-email-cody@linux.vnet.ibm.com> X-Mailer: git-send-email 1.8.2.2 In-Reply-To: <1367539263-19999-1-git-send-email-cody@linux.vnet.ibm.com> References: <1367539263-19999-1-git-send-email-cody@linux.vnet.ibm.com> X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13050300-2398-0000-0000-000013FA6417 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Export ensure_zone_is_initialized() so that it can be used to initialize new zones within the dynamic numa code. Signed-off-by: Cody P Schafer --- mm/internal.h | 8 ++++++++ mm/memory_hotplug.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mm/internal.h b/mm/internal.h index 8562de0..b11e574 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -105,6 +105,14 @@ extern void prep_compound_page(struct page *page, unsigned long order); extern bool is_free_buddy_page(struct page *page); #endif +#ifdef CONFIG_MEMORY_HOTPLUG +/* + * in mm/memory_hotplug.c + */ +extern int ensure_zone_is_initialized(struct zone *zone, + unsigned long start_pfn, unsigned long num_pages); +#endif + #if defined CONFIG_COMPACTION || defined CONFIG_CMA /* diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index fafeaae..f4cb01a 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -284,7 +284,7 @@ static void fix_zone_id(struct zone *zone, unsigned long start_pfn, /* Can fail with -ENOMEM from allocating a wait table with vmalloc() or * alloc_bootmem_node_nopanic() */ -static int __ref ensure_zone_is_initialized(struct zone *zone, +int __ref ensure_zone_is_initialized(struct zone *zone, unsigned long start_pfn, unsigned long num_pages) { if (!zone_is_initialized(zone)) -- 1.8.2.2