Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1738223ybg; Sat, 19 Oct 2019 01:26:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuWjteJW92rT8Wv0K/7QRBMuLi1C5Sq/pkbcx53JYEHkoZtBPZBjLu9r51szqSma9SPvun X-Received: by 2002:a05:6402:64f:: with SMTP id u15mr13925234edx.231.1571473565393; Sat, 19 Oct 2019 01:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473565; cv=none; d=google.com; s=arc-20160816; b=DCEEgIRpiqYH0sBEusqtlXOId6BhnR6pIdeutYfI2/594EwZrRBTnW6/E9g5pitpaY 94M/CMbojeF5YIlCQZISkW7ZDImtUrAuqXrjxFcjoirYHkur67chmPgWhHJgjYZkMo7Z NOhcXvEdBX+62h4F3q+9Sga2srYwz6p+YNbzgjFsvHYc4UC4kGxeC+W9kmuIfaQz44uZ +PoqMWgq8bzs1sw6krp/gP4DQAaIwd0RsDpn4IXAVlO/OrK4DyDyH2GfC8SimxA6PXjF oGk9B4+UoEdMm5GgTR7g4rY/GhH+pwb8g+eLYzVYkOwOCbAwVGhPv+iPYp7GoRToKB+P +vLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+aoawN4zv0IlnC1zhtb92CLLKj9NxhCvl8+IaWRlddg=; b=QTz47LidJX//feQN/KeYxItxCXL/iu9m9X9Lww8Qdyuz+2q+GuKJZt54a25z8ABFeF 8Voh8PX8b3KWPsQfiO3s9XWvcGBLDg4LYZTRZ+Xrx7UvgZWKy3lgzc6iX9bdYaAZ2Lk0 p+kDwkKWoxgNRtvO5KVMfu5pa7f+N7L/g73yMxf/5PLXI6Ksq1YdBoNBTJ9wkYadHLmM EU5SIg9KWUBkwxPZms6MNexFfGRiMfxn2SUg7s9Qz64JpE0mSPFoX87hhFlbZWSZ7UlC EYb0pgkbx8RvUIhiZNS3cuvaVom7EhkpavKUVpdlafECGoGzObv5pyY1javKDh0yhUAT uwBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3si4768361eju.357.2019.10.19.01.25.42; Sat, 19 Oct 2019 01:26:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2634058AbfJRNCI (ORCPT + 99 others); Fri, 18 Oct 2019 09:02:08 -0400 Received: from mx2.suse.de ([195.135.220.15]:45326 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2410200AbfJRNCI (ORCPT ); Fri, 18 Oct 2019 09:02:08 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 857B0B193; Fri, 18 Oct 2019 13:02:05 +0000 (UTC) Date: Fri, 18 Oct 2019 15:02:05 +0200 From: Michal Hocko To: Mel Gorman Cc: Andrew Morton , Vlastimil Babka , Thomas Gleixner , Matt Fleming , Borislav Petkov , Linux-MM , Linux Kernel Mailing List Subject: Re: [PATCH 3/3] mm, pcpu: Make zone pcp updates and reset internal to the mm Message-ID: <20191018130205.GQ5017@dhcp22.suse.cz> References: <20191018105606.3249-1-mgorman@techsingularity.net> <20191018105606.3249-4-mgorman@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191018105606.3249-4-mgorman@techsingularity.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 18-10-19 11:56:06, Mel Gorman wrote: > Memory hotplug needs to be able to reset and reinit the pcpu allocator > batch and high limits but this action is internal to the VM. Move > the declaration to internal.h > > Signed-off-by: Mel Gorman Acked-by: Michal Hocko > --- > include/linux/mm.h | 3 --- > mm/internal.h | 3 +++ > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/include/linux/mm.h b/include/linux/mm.h > index cc292273e6ba..22d6104f2341 100644 > --- a/include/linux/mm.h > +++ b/include/linux/mm.h > @@ -2219,9 +2219,6 @@ void warn_alloc(gfp_t gfp_mask, nodemask_t *nodemask, const char *fmt, ...); > > extern void setup_per_cpu_pageset(void); > > -extern void zone_pcp_update(struct zone *zone); > -extern void zone_pcp_reset(struct zone *zone); > - > /* page_alloc.c */ > extern int min_free_kbytes; > extern int watermark_boost_factor; > diff --git a/mm/internal.h b/mm/internal.h > index 0d5f720c75ab..0a3d41c7b3c5 100644 > --- a/mm/internal.h > +++ b/mm/internal.h > @@ -165,6 +165,9 @@ extern void post_alloc_hook(struct page *page, unsigned int order, > gfp_t gfp_flags); > extern int user_min_free_kbytes; > > +extern void zone_pcp_update(struct zone *zone); > +extern void zone_pcp_reset(struct zone *zone); > + > #if defined CONFIG_COMPACTION || defined CONFIG_CMA > > /* > -- > 2.16.4 > -- Michal Hocko SUSE Labs