From patchwork Tue May 28 21:44:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Gushchin X-Patchwork-Id: 13677488 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7B09C25B78 for ; Tue, 28 May 2024 21:45:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 431906B00A5; Tue, 28 May 2024 17:45:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 374C26B00A8; Tue, 28 May 2024 17:45:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 20B226B00A6; Tue, 28 May 2024 17:45:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 03DA46B00A5 for ; Tue, 28 May 2024 17:45:01 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 63F71A1BEE for ; Tue, 28 May 2024 21:45:01 +0000 (UTC) X-FDA: 82169135202.11.D771A32 Received: from out-182.mta1.migadu.com (out-182.mta1.migadu.com [95.215.58.182]) by imf05.hostedemail.com (Postfix) with ESMTP id 4EF63100013 for ; Tue, 28 May 2024 21:44:59 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=jYmTP6P9; spf=pass (imf05.hostedemail.com: domain of roman.gushchin@linux.dev designates 95.215.58.182 as permitted sender) smtp.mailfrom=roman.gushchin@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1716932699; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=f4ula8SYVBjOfrvxjW/OkqDvPiEodD69W30PbWhQWRY=; b=D3uFR7NROf5pMwnOHP1COlaqwSlsYF130HiQ7ExHzME9Sjb7FDWH+5sOZ18728WCLJ4c8v jzjmQh2hvN/85xNvrgu1+rRNIqup4qIBjva9mAyCfIJPca7d1gvm0nSPbkou9bzaH0qB9Q 6DiYqPaskn0NaejwUmGBQoKRzbsY7RM= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=jYmTP6P9; spf=pass (imf05.hostedemail.com: domain of roman.gushchin@linux.dev designates 95.215.58.182 as permitted sender) smtp.mailfrom=roman.gushchin@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1716932699; a=rsa-sha256; cv=none; b=1j5M72k1uRHdUGT9UCJn5p7n+TH7w1+vVginfapPiNWfPJ6b+DmaA1M2tsbP9E+LIuQRdp Ga91wXhSdAEj5xDdzxlScF6ffSTOSAUx94yuzsdrGqdke+3LrEdbFGStXjoUQXOS6VBUJG lQ/pWjU5a3Z2fcTjAVD7FsaPCcLMeT4= X-Envelope-To: akpm@linux-foundation.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1716932697; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f4ula8SYVBjOfrvxjW/OkqDvPiEodD69W30PbWhQWRY=; b=jYmTP6P9ngp+GGp/Jp43SJZqmrpNAcaEPMeezUJYIj/+lpi5MWRiUA6ciB715FDT4xAecG oonitBUfENxBApr2YtRZE8X6UqIOqFl2SnRkXf/stwdJ2BGqowM3n9CGd+fNpnm1MeTZg8 EXI6IPdTuZauhLzmc/DCB/RMi+YuHK8= X-Envelope-To: muchun.song@linux.dev X-Envelope-To: hannes@cmpxchg.org X-Envelope-To: mhocko@kernel.org X-Envelope-To: shakeel.butt@linux.dev X-Envelope-To: willy@infradead.org X-Envelope-To: linux-mm@kvack.org X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: roman.gushchin@linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Andrew Morton Cc: Muchun Song , Johannes Weiner , Michal Hocko , Shakeel Butt , Matthew Wilcox , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Roman Gushchin Subject: [PATCH v1 11/14] mm: memcg: make memcg1_update_tree() static Date: Tue, 28 May 2024 14:44:32 -0700 Message-ID: <20240528214435.3125304-2-roman.gushchin@linux.dev> In-Reply-To: <20240528214435.3125304-1-roman.gushchin@linux.dev> References: <20240528202101.3099300-1-roman.gushchin@linux.dev> <20240528214435.3125304-1-roman.gushchin@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspam-User: X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 4EF63100013 X-Stat-Signature: tkunjs6jyxy9cifo9wt8yegcs8jxma6e X-HE-Tag: 1716932699-570599 X-HE-Meta: U2FsdGVkX19N9NFT+IrE3Lt/6f6KkzZL+F92dj7NNeiqFnE9q8JxaeiByPLBv2gt2M8QCoJ6fCKPZJXm4e0HFz8B5EgCo5nq6iP44FuBSkNeMGF+xV9TkooZXCJazLzGirZMqW95fym2laCFNGM4+utVaENK1PVbD9rC3mNEsiFFI/0JAlT4bVqJxrxQ4KHijhOgJuR5B2hohBR30un2FG4jIyY8yN6ZLi0mhUWn+YWts2kIzR+91eMuqUsYR5yIjVyuv6OCLgQi9tVBLGH/ol+Cjx0POmYoQj5Da0Ki9rb5ut/s3pQDAOAk/31uvr9qbvAsTUgJVwyQLS6jUSVrJEE9jBxueGykXXNngOwX9G4f49iX8cVO1KVdSM5r2KScMWioVdJ2woedSgbjBtIblESYb20UDhPzIDc1EUTrUe6vZ4GBxoE/KWuweZoGUU/2q32QPYeTXJClnUoza09+rx/zpna6fJuV0bIDOXK6Airo6SjPulo11IFXrWYaa3M/NzJPOoVH8n438XkdmAOcCkJ6zG1KTA3geopHYztQi+VvOVSl5xVKNUiyV6+GZhtwxerhjM81Ww6IM4fpyKLs5aqalXxY417ORy8MNnavc4nwtFIapJWKJe/ctIL7NYZUkX5r/xOqv3n0AEFStnxeIgVEzp/sOQRHJqSbELezkbIENd9I8duOIT9e+rC3OaL2QW6I/wQNNWi/RqLnli2u1IEaU36jO1sJfwPhVw3/maCUPakpxSAhhRCmGYlabuxO8mzIMNTJc5SkmDg3ilfXHTg79xoL4qz8K7YnbVtF4QhezuvyZQ9uPcgxH+w18MoX/X35VhLb66DT1hNsFXBv14TSTQgm605Aon4T/mpAjggjATkXSlVBCsD5Piw0jPuNsUdZ/FkaRv5zWoY93qUarLUQi71cNAP2Opbh4Tc0rZzfVxgvj4fpea5Nu7X4CmMnwvnog5t6TM9lof4v1ye MMxIgLPt CbZ9oyBuew8M2bx+wGtiyxCAa4FhULQ7Qn7j8gVpEVo0YVlJiXDNw69V5q5nu24L3VAJxO6aS3BVOCbfH97ONICqe+fEzs/ips0SwpUFEXjWnAu2D6Zxq48m9H8KIW5HR+wgs 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: List-Subscribe: List-Unsubscribe: memcg1_update_tree() is not used outside of mm/memcontrol-v1.c anymore, define it as static and remove the declaration from the header file. Signed-off-by: Roman Gushchin Acked-by: Shakeel Butt --- mm/memcontrol-v1.c | 2 +- mm/memcontrol-v1.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/memcontrol-v1.c b/mm/memcontrol-v1.c index 3972172f83624..b69181322fb18 100644 --- a/mm/memcontrol-v1.c +++ b/mm/memcontrol-v1.c @@ -201,7 +201,7 @@ static unsigned long soft_limit_excess(struct mem_cgroup *memcg) return excess; } -void memcg1_update_tree(struct mem_cgroup *memcg, int nid) +static void memcg1_update_tree(struct mem_cgroup *memcg, int nid) { unsigned long excess; struct mem_cgroup_per_node *mz; diff --git a/mm/memcontrol-v1.h b/mm/memcontrol-v1.h index 7be4670d9abbb..7d6ac4a4fb36d 100644 --- a/mm/memcontrol-v1.h +++ b/mm/memcontrol-v1.h @@ -5,7 +5,6 @@ #include -void memcg1_update_tree(struct mem_cgroup *memcg, int nid); void memcg1_remove_from_trees(struct mem_cgroup *memcg); static inline void memcg1_soft_limit_reset(struct mem_cgroup *memcg)