From patchwork Thu Jul 27 11:59:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 13330025 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 01600C04A94 for ; Thu, 27 Jul 2023 11:59:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 907996B0078; Thu, 27 Jul 2023 07:59:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8B8D06B007B; Thu, 27 Jul 2023 07:59:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7814E6B007D; Thu, 27 Jul 2023 07:59:46 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 67EDB6B0078 for ; Thu, 27 Jul 2023 07:59:46 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 449441404D8 for ; Thu, 27 Jul 2023 11:59:46 +0000 (UTC) X-FDA: 81057247572.22.D64B16A Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf16.hostedemail.com (Postfix) with ESMTP id 7370018000C for ; Thu, 27 Jul 2023 11:59:42 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf16.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1690459184; 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-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=8kbSNbViP144t+RQ3l79Y2z90Ma5Nwq6RPh1Xtm8NdY=; b=lTtI0wp+4Z3EKBeSmARcf7GstxX9g5Zn9qtAjyTxxaKVgSOKMgsBqfeMyQ1aQh8b615xz+ 2Mtk6VY37Bn5lPQGigQLdhUeOzcUFg0deBQ5np1ob2QwVNBf3cabVTcjQsqLMQbVVMxXFo piE87uIsA8yuvyVBo+yTLQBnbX76I9I= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf16.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690459184; a=rsa-sha256; cv=none; b=TV8qeyFIRE5kj9t+dhWKyE8//igoZPPh4IFDM/K/48yHbjK4oHI6nKTHjBBjgF/UgXTBWo MxO54CSyawKuNx1EAuBDVmzv4gACx7rrW0CX3miCTSd2yuLcbKLigG05aEW2DOcQBW9bwK kuVix0icDbs/zoR/5hfUMvw24kzohw0= Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RBTkT0SPTzNmVc; Thu, 27 Jul 2023 19:56:17 +0800 (CST) Received: from huawei.com (10.174.151.185) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 27 Jul 2023 19:59:39 +0800 From: Miaohe Lin To: CC: , , , Subject: [PATCH v2] mm/memcg: fix obsolete function name in mem_cgroup_protection() Date: Thu, 27 Jul 2023 19:59:34 +0800 Message-ID: <20230727115934.657787-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Originating-IP: [10.174.151.185] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 7370018000C X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: 1gws9offj9i9jm7z87nmg493wssyic8n X-HE-Tag: 1690459182-138747 X-HE-Meta: U2FsdGVkX1/00+Verm+TMmpFmFI2puOjngnmLM7LTYaDBiYehGhSm01cBEeYvms10SuOTLAZk+kchHndhTsIqk2ikhJwaxl3JRmh0+qMQak/V3HuEKhiBqoo4rJkK7W7OGuA67AlhOjIM3Zog3PIhUw3p9hLhmSgXKEewsx8PEAkChrLpyij069FZuQ2xe96dprAabbW4UkeYBBRhVK3DCUScQTOqMcv45GSfpnPtspL0VzITHbFLFvGrmYU/YHHZMTW1ESSEHpg88viBn04anBAQGYw0KiAA/NjPteXRCqu4CKz3gPSnYeMpi5yp4MQ5iE6Ir2Y/ophvKa7Vz81q3Zh6RZdY0XMFb3GcTLI9Tf33dZT60FIyqXpcmbqCMEyGpQBW4OlcAH3JPkhDaZHSFQx7q2UUX0uCe24d0eUZAM8RZPy6JvGLgZf0yklvEN45M6D1U8n3NTxiJCj10AOuV7La+veOdY6+S12nlchoK7SuvDbtR8IZn6PoisYTnVCXjATcjp/GtbUL3ToruWDhQghqN8lbgZEdmaoXZInw2KgtjJ3L+16TRguS75hP7tkDhWKqhpOuBJVHf0e3e7rCasy+4FVmqkTpA/u/qP5WtqGh8nWZGhoFg3D5ytmPvlxkFgF1jFhfbTxkWUk6rh1TS209J636O93vvYVNIRKYD0pN4uhBdyG/LUvqVNUTBTeA0/NfGjs8VwvzfWuJUxR1EgK7apJv87q/qg5E1leEVkEthhC2jqs3w0tp39FZWjQ+YNu825CmG3wuzgua8CthdhiBjlpgKVITYgSwBaqiOZYPj7MQ083mMXEnlB0jmk5LLMRsYLEA/J8ExdNP5pBlk3ogg8mhh4tjBpa0edRwv3bzJCHMImDCLE2bFJulKkNWNwk6FW1nZKxdr3CcdNyfvvj8Z7tBwijmzHNpPT8l/QyyyTSDE9L/Au4n6L7M6GLWKibMuByGnrUHqCF4lG zHMwOZD3 tI7xw3BEYalZs0EOWANzUqhVjhrkeoESDjjv2QpVKRRK8vj1cCeE2moyztKvNqXapcBO18e9+2mvKUZoFPdYDOixaSKMbbEezwMaGudIgFoZogT8HpsLrZRsKOBAx7yj3RyF1dEORj2ax2QoDnhatSZNxrXqv5UFtUNIMKljAZ0nFCH9OzNBvLgtt6eC6A8oWfn5l 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: Commit 45c7f7e1ef17 ("mm, memcg: decouple e{low,min} state mutations from protection checks") changed the function name but not the corresponding comment. Signed-off-by: Miaohe Lin --- include/linux/memcontrol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index e765d1ff9cbb..3bd00f224224 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -585,7 +585,7 @@ static inline void mem_cgroup_protection(struct mem_cgroup *root, /* * There is no reclaim protection applied to a targeted reclaim. * We are special casing this specific case here because - * mem_cgroup_protected calculation is not robust enough to keep + * mem_cgroup_calculate_protection is not robust enough to keep * the protection invariant for calculated effective values for * parallel reclaimers with different reclaim target. This is * especially a problem for tail memcgs (as they have pages on LRU)