Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757538Ab2JSHHq (ORCPT ); Fri, 19 Oct 2012 03:07:46 -0400 Received: from mail-oa0-f46.google.com ([209.85.219.46]:46209 "EHLO mail-oa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756413Ab2JSHHp (ORCPT ); Fri, 19 Oct 2012 03:07:45 -0400 MIME-Version: 1.0 In-Reply-To: <1350629202-9664-10-git-send-email-wency@cn.fujitsu.com> References: <1350629202-9664-1-git-send-email-wency@cn.fujitsu.com> <1350629202-9664-10-git-send-email-wency@cn.fujitsu.com> From: KOSAKI Motohiro Date: Fri, 19 Oct 2012 03:07:24 -0400 X-Google-Sender-Auth: WjEsKN8yCw8TJmnA5zb9icbOZEY Message-ID: Subject: Re: [PATCH v3 9/9] memory-hotplug: allocate zone's pcp before onlining pages To: wency@cn.fujitsu.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, rientjes@google.com, liuj97@gmail.com, len.brown@intel.com, benh@kernel.crashing.org, paulus@samba.org, minchan.kim@gmail.com, akpm@linux-foundation.org, isimatu.yasuaki@jp.fujitsu.com, Christoph Lameter Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1179 Lines: 28 On Fri, Oct 19, 2012 at 2:46 AM, wrote: > From: Wen Congyang > > We use __free_page() to put a page to buddy system when onlining pages. > __free_page() will store NR_FREE_PAGES in zone's pcp.vm_stat_diff, so we > should allocate zone's pcp before onlining pages, otherwise we will lose > some free pages. > > CC: David Rientjes > CC: Jiang Liu > CC: Len Brown > CC: Benjamin Herrenschmidt > CC: Paul Mackerras > CC: Christoph Lameter > Cc: Minchan Kim > CC: Andrew Morton > CC: KOSAKI Motohiro > CC: Yasuaki Ishimatsu > Signed-off-by: Wen Congyang Looks good. Acked-by: KOSAKI Motohiro -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/