From patchwork Tue Jun 25 00:59:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Gushchin X-Patchwork-Id: 13710405 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 4B677C30659 for ; Tue, 25 Jun 2024 01:00:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 30C786B0360; Mon, 24 Jun 2024 20:59:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 293F16B0361; Mon, 24 Jun 2024 20:59:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0246C6B0363; Mon, 24 Jun 2024 20:59:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id D4BF46B0360 for ; Mon, 24 Jun 2024 20:59:53 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 8AE24A14A2 for ; Tue, 25 Jun 2024 00:59:53 +0000 (UTC) X-FDA: 82267603866.01.F18B30B Received: from out-177.mta0.migadu.com (out-177.mta0.migadu.com [91.218.175.177]) by imf20.hostedemail.com (Postfix) with ESMTP id 7C2D31C0006 for ; Tue, 25 Jun 2024 00:59:51 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=PlGf6lnG; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf20.hostedemail.com: domain of roman.gushchin@linux.dev designates 91.218.175.177 as permitted sender) smtp.mailfrom=roman.gushchin@linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1719277180; a=rsa-sha256; cv=none; b=ymSEyPGK7szd8WihXzQs82NvvgaeW4x/ss1VwZoNhRQWbePliFUNFTrXiSYSEpB5acN26v wYKADHaTSIeYgsElIfTtU1j9wTvJmWTscBwMHke2mgE59L5UB2Q004q3H6ICyiItC0MbGY 6CNVzAhok3xKI+czh8KxAmpbVUwR/0Y= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=PlGf6lnG; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf20.hostedemail.com: domain of roman.gushchin@linux.dev designates 91.218.175.177 as permitted sender) smtp.mailfrom=roman.gushchin@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1719277180; 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=i6OtryeQEKVoJSpeL/4FN+6EUWrG1/pihifLngpHrqA=; b=b77t9QE7QtPlXv6MRUaY7O5sUn4WMc0yfFh+v8Qlr4ooQ0LwSJOj09Grdx28qrMLC+l9Qt 7aXTAGmes3O3hWLFoQZ3W04r65F5Ib4N8m++jurmeVT+hRLDUXeyl6YiUdBBaUREZdgDvM syRxULOJqLrVQw4rb+XkuyVZXY/y3cE= X-Envelope-To: akpm@linux-foundation.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1719277190; 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=i6OtryeQEKVoJSpeL/4FN+6EUWrG1/pihifLngpHrqA=; b=PlGf6lnGIQXNmfnq2Lb4Tkf4shhTkmXLgelP2ND3Ym1XBUrQgwU2RRuocobaKhgUDIawY9 y/qwRqVY0IWNNQJ78VvWbqijJuUQHx0Fx3ff0YC5Hnm0PZzzLh8G6Fp4u+r+ci0iSk4sBa ygiGKYxBilotTIeiKryEUQaV54ffcHg= X-Envelope-To: hannes@cmpxchg.org X-Envelope-To: mhocko@kernel.org X-Envelope-To: shakeel.butt@linux.dev X-Envelope-To: muchun.song@linux.dev X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: cgroups@vger.kernel.org X-Envelope-To: linux-mm@kvack.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: Johannes Weiner , Michal Hocko , Shakeel Butt , Muchun Song , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, Roman Gushchin Subject: [PATCH v2 11/14] mm: memcg: make memcg1_update_tree() static Date: Mon, 24 Jun 2024 17:59:03 -0700 Message-ID: <20240625005906.106920-12-roman.gushchin@linux.dev> In-Reply-To: <20240625005906.106920-1-roman.gushchin@linux.dev> References: <20240625005906.106920-1-roman.gushchin@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspamd-Queue-Id: 7C2D31C0006 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: fw3n9ti5f4rtdf8pf31rug1ou7ifxu4n X-HE-Tag: 1719277191-424723 X-HE-Meta: U2FsdGVkX19WgEUlv0acH7u293XBdObsX0fZKuje2v2NzSY0aoexqoUwKoLvJf7hBcxAk2emfU0KhSctaLdM/zA1HciOVxMzjtJ5FY71L06yuWidHrQg91x+vmYbrzsvj0TYF0X60QV2wWDdOM9P1BPC8c9Lg0qUyxHQgNIn8rMfmy4rBB4N3/0x14g1Iz6kFqlWRWsCZo/NHHMCPMvY8GSU7+RKcBBZ64DpTuVR5tZDI/cw1Y5078N1sxmybuXWVRfMaqbL55Xs7sSM6bdgGuIZewOo3+38hnenh+q/QC6KCH8FSUxRGxYYoWndwFJqYmAWFs4SuYLt1t/yVgygBJ8wTK1ZxZDIU5DIzuj/Sd11OqCSGdkntaiDVTRB2q4FkvIxLlHB4LOZ2UB6OZun8a5bRkpyu7wxLAjAEu4tKEQ190LIdmfnw6CBPnPY5bzYMPtRrh1JS8oC1o2qZOojvzEjjEi27qtdGrK3T3R2gzXCUz/VjdutPGBCPX0kKTmDGqmdfXNPGEQEloMG5RRjBIMYGwnjrdUzVn7xeTSDKgysSLOiTLxbgpiyENfjgtntgaa/oDPfCssp56Xr69RfMqis83dJecATNsEGKEfPXXNlbRPMTSIum8TEMZmSRnTk5d/FaRNPOCypQt/wi8QzmWKyy0XRw5t+OMpvnXKVRYXsms5fpDyB0dk4jLxKO48KrY75Qt92Op4cbfU6pzo0X5CV+4plQSUwLj7dfy1MpE1JXYZGO/x2jYYcHdrllwxhmxdMM9FubuVQky+Dgyy8OxUf4qT3qUml3//qOEXysfDJcVKyWzZeJwsSPNAmJGdHg+myOjXNaQ7jK2v31IexR8u/v28majMRG0go7rs8dwwHj9TvSw+sxRxUUHKQhunmpqE6YFUVMSAb2q7VkSEz5pp/ted8rMCek8d9wyTR0oF/aGLCS2y4CHVP1w1N8EtWLjttG+Ylo9Bzh+wAmEE LhWT7AMR v9jLlldcKSX+nSG6iI21mJ96CaHdMt+RPR2Q0y4HDIxwFvT5RLBeeIgiq6iBbFnQtmHZ8K/oddtE6vwT7n0oFeuHYWET+IltFUScYmjSgFAA21R0S++e3sS8AyR3xl4gbbNftOnf4Y/k41aMy1bCq69mnPmUrZ+2VujOb 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: Michal Hocko --- 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 1b7337d0170d..f89de413004b 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 7be4670d9abb..7d6ac4a4fb36 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)