From patchwork Fri Oct 18 10:56:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mel Gorman X-Patchwork-Id: 11198213 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0691918A6 for ; Fri, 18 Oct 2019 10:56:18 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C4395222D0 for ; Fri, 18 Oct 2019 10:56:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C4395222D0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=techsingularity.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A1AB88E0008; Fri, 18 Oct 2019 06:56:11 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 9A67C8E0005; Fri, 18 Oct 2019 06:56:11 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8731A8E0009; Fri, 18 Oct 2019 06:56:11 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0027.hostedemail.com [216.40.44.27]) by kanga.kvack.org (Postfix) with ESMTP id 431D68E0005 for ; Fri, 18 Oct 2019 06:56:11 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with SMTP id E0C0A62CC for ; Fri, 18 Oct 2019 10:56:10 +0000 (UTC) X-FDA: 76056600900.01.toy28_18cfd0cb9bc41 X-Spam-Summary: 2,0,0,c31e8b225e10a107,d41d8cd98f00b204,mgorman@techsingularity.net,:akpm@linux-foundation.org:mhocko@suse.com:vbabka@suse.cz:tglx@linutronix.de:matt@codeblueprint.co.uk:bp@alien8.de::linux-kernel@vger.kernel.org:mgorman@techsingularity.net,RULES_HIT:41:355:379:541:800:960:966:973:988:989:1260:1345:1359:1437:1534:1541:1711:1730:1747:1777:1792:2196:2198:2199:2200:2393:2559:2562:2731:3138:3139:3140:3141:3142:3352:3865:3867:3868:3871:4321:4385:4605:5007:6120:6261:7901:8634:9592:10004:11026:11537:11658:11914:12296:12297:12438:12517:12519:12522:12555:12895:12986:13069:13161:13229:13311:13357:14096:14384:14394:14721:21080:21627:30054:30060:30070,0,RBL:46.22.139.220:@techsingularity.net:.lbl8.mailshell.net-62.2.114.100 64.100.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fs,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: toy28_18cfd0cb9bc41 X-Filterd-Recvd-Size: 2702 Received: from outbound-smtp37.blacknight.com (outbound-smtp37.blacknight.com [46.22.139.220]) by imf45.hostedemail.com (Postfix) with ESMTP for ; Fri, 18 Oct 2019 10:56:10 +0000 (UTC) Received: from mail.blacknight.com (unknown [81.17.254.16]) by outbound-smtp37.blacknight.com (Postfix) with ESMTPS id 0CD9012B5 for ; Fri, 18 Oct 2019 11:56:09 +0100 (IST) Received: (qmail 30826 invoked from network); 18 Oct 2019 10:56:08 -0000 Received: from unknown (HELO stampy.112glenside.lan) (mgorman@techsingularity.net@[84.203.19.210]) by 81.17.254.9 with ESMTPA; 18 Oct 2019 10:56:08 -0000 From: Mel Gorman To: Andrew Morton Cc: Michal Hocko , Vlastimil Babka , Thomas Gleixner , Matt Fleming , Borislav Petkov , Linux-MM , Linux Kernel Mailing List , Mel Gorman Subject: [PATCH 3/3] mm, pcpu: Make zone pcp updates and reset internal to the mm Date: Fri, 18 Oct 2019 11:56:06 +0100 Message-Id: <20191018105606.3249-4-mgorman@techsingularity.net> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191018105606.3249-1-mgorman@techsingularity.net> References: <20191018105606.3249-1-mgorman@techsingularity.net> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 Tested-by: Matt Fleming 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 /*