From patchwork Fri Aug 20 09:58:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 12448789 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB7B6C4338F for ; Fri, 20 Aug 2021 10:02:29 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 63C40610CB for ; Fri, 20 Aug 2021 10:02:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 63C40610CB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 00D086B0078; Fri, 20 Aug 2021 06:02:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ED82A6B007B; Fri, 20 Aug 2021 06:02:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DA00B6B007D; Fri, 20 Aug 2021 06:02:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0183.hostedemail.com [216.40.44.183]) by kanga.kvack.org (Postfix) with ESMTP id C154B6B0078 for ; Fri, 20 Aug 2021 06:02:28 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 616AE80BC37B for ; Fri, 20 Aug 2021 10:02:28 +0000 (UTC) X-FDA: 78495019176.20.ACE80B4 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf19.hostedemail.com (Postfix) with ESMTP id 20B14B0000A3 for ; Fri, 20 Aug 2021 10:02:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=nzUrzTYf+SxA9DhkR1ixsQBSLVoS1UsUtkY4TuBivPg=; b=JoPBlcJiFqV74veGWFe1sBI6Ng sSqpzCCSwBgVyHB08j9McLOlR3cKFBhyMcM5xzEaYClvs4XfWxXAuSHiC9pg7sCuqkRwfYygAa5gd qy3YJIAzot89NYNSk2ntP5jTiUBj05ROneWiPfxBo6F3HTFopgpp+RWecy19gWmSuafxTkyxR9CRh X+sYrZArif2/DzhEAuXF4thtO+TjEybpgk7bks4HCQuY9KPg4zHXxwbG96bBpDUDCdX97Sb9OsYHF iz3omvxWYed9N8aa6GScN9rCBQXVl7aWy9JbdSH0rob2x6BHLJ6atPqy2+vd5l9hz03G3V9AUFw3n FTiz/57w==; Received: from [2001:4bb8:188:1b1:43a3:4b88:ec18:d4de] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mH1Jw-006LLa-Tk; Fri, 20 Aug 2021 10:00:42 +0000 From: Christoph Hellwig To: Johannes Weiner , Michal Hocko , Vladimir Davydov , Andrew Morton Cc: Matthew Wilcox , cgroups@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 2/2] mm: unexport {,un}lock_page_memcg Date: Fri, 20 Aug 2021 11:58:15 +0200 Message-Id: <20210820095815.445392-3-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210820095815.445392-1-hch@lst.de> References: <20210820095815.445392-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=JoPBlcJi; dmarc=none; spf=none (imf19.hostedemail.com: domain of BATV@casper.srs.infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=BATV@casper.srs.infradead.org X-Stat-Signature: j7pst74tnzkysq71qqeqz8nh5zzfdbyn X-Rspamd-Queue-Id: 20B14B0000A3 X-Rspamd-Server: rspam01 X-HE-Tag: 1629453748-968525 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: These are only used in built-in core mm code. Signed-off-by: Christoph Hellwig Acked-by: Johannes Weiner --- mm/memcontrol.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 4cb4349065931..6a74a180e3eae 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -2019,7 +2019,6 @@ void lock_page_memcg(struct page *page) { folio_memcg_lock(page_folio(page)); } -EXPORT_SYMBOL(lock_page_memcg); static void __folio_memcg_unlock(struct mem_cgroup *memcg) { @@ -2052,7 +2051,6 @@ void unlock_page_memcg(struct page *page) { folio_memcg_unlock(page_folio(page)); } -EXPORT_SYMBOL(unlock_page_memcg); struct obj_stock { #ifdef CONFIG_MEMCG_KMEM