From patchwork Sun Jul 23 03:25:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 13323083 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 D6AACC001DE for ; Sun, 23 Jul 2023 03:25:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8A9B56B0072; Sat, 22 Jul 2023 23:25:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 859B76B0074; Sat, 22 Jul 2023 23:25:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 721C86B0075; Sat, 22 Jul 2023 23:25:48 -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 5B2CB6B0072 for ; Sat, 22 Jul 2023 23:25:48 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 1B95D1C95C7 for ; Sun, 23 Jul 2023 03:25:48 +0000 (UTC) X-FDA: 81041437176.30.3336F88 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf25.hostedemail.com (Postfix) with ESMTP id 36225A0005 for ; Sun, 23 Jul 2023 03:25:44 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=none; spf=pass (imf25.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1690082746; 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=gRBdmFySjDQp6sxJPnOJMnl02WHw4mhmxi9UgCXZKfM=; b=nXx3hCMxvngQjP3Jdh3WWC4j5G0su67R73X/b0elmB3VDC71mVyD1+fkML2ETAfu7878Vo +iq7ihsXhVtSIGVK4iYI+9QlP/oaydMIHukA9tM9gt9mfQrTc8ROnCzw7VznxjE3QF4odU V4wGo7nbigGx1tWPuFsX3jzU9qV8gnE= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=none; spf=pass (imf25.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690082746; a=rsa-sha256; cv=none; b=qDt+NSvII7ABMAA3CkK7AtlZyf0Q6Xix1KtI9MXatY1+Q0IgT+Lm/R9AK6yuQLY0+XSL2i JXmTrV+VJOOpvxqeo4g4zqeQJrc9V+2LPZH6x5PbdKOk5RLoD3xXrJuANCn7wY+mn8XOHg QUX5JOHW6+GUlxBggHUlCbh3JYKv6fo= Received: from canpemm500002.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4R7pYP5dPSzVjD4; Sun, 23 Jul 2023 11:24:09 +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; Sun, 23 Jul 2023 11:25:38 +0800 From: Miaohe Lin To: CC: , , , Subject: [PATCH] mm/memcg: fix obsolete function name in mem_cgroup_protection() Date: Sun, 23 Jul 2023 11:25:38 +0800 Message-ID: <20230723032538.3190239-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: 36225A0005 X-Rspam-User: X-Stat-Signature: z43k5i8gguo8cku9hj6ccjoku1o7cpze X-Rspamd-Server: rspam01 X-HE-Tag: 1690082744-968909 X-HE-Meta: U2FsdGVkX18j/kRSjqnYH+EPFIvqiOzUOayeuqZsuC9jUavcNw/0SCLF2LWFYTxLLiA/CGC7HQUvQXqNjOCEicIArxfUhVGe+2oE1JTUQK0hUqEvUOHIcXdHbqzbYYYEE6TX0FbxICSFCqIP3L5diIEdbj98srv3GoLzJ1CqWNBKKCofR0TpuYY3Xk27ZXqsF4GRTwk+5gQ3shpvYKGi/2raq2W41I2hryZw8PR3qQmgTqa5HR3uHiOST4jtlQoXN/54Hx8plXU6toV2r/Jg6DuXCZZ7jHz9gLefrdV/tXeRJKp55wvfvaDqbnGU6DIWC8z31BOaJWUjH2p/3KYDydsHk+WnqVEwMLhhxaGasZ7sV8A2CPoolEluTRlQEUc+/eZ8kOFkaV/AlgYaI/knfTQaxHuGoCYtSkbwsn9MrhBfPE+qSqqV1jgtHx/9eyit02L4mWUjuUJ2ntR1rrl+D9levPPLXMmn4IwxwgtTZ5CU8oFWyBV2HGvTQhnuvH7xsQFLdmRfpSMjsOFkksm91lwZBaDwGQgE5tjnu7QO7LSH2G1WVMZm6BKfQrHUmrhQu/Jp9FYofgqQIGmBAOrnYyL9/O1HsucJl+l3X8R7SG0m0fLQFSgl7zWVnFJjV1/1g4uqeRbv62LABRJq8/ze3wfbm9mn+Le2Cm9pag/lu2jZM/VfsHwfazJPSg6c8GzWww7ktx9LLdmO2WKO4MthD23gRgGkuhLN6dOVEKEw0a6ISp1zVPgsJnTJAqXzq0Se4gQJoTrxVljw2WFVchJifs/QQERg6UF9FoleBxe5fiqH8TCIBprxlv22Oq6n1BV+sVebXPatelT9uX/uL0cZ4FqhqMxIEAESRYEIM3xEm20062fJw5ld3N9fNqX+y0hCrJTg11wRc1JllC0UysmWGRaM49T7E4JXJV40DpFvqAKYUJs6rqdRKRWnBNhDcewSoaRXKFp+tHs3I+V0Gcv JwXS0+Kk OkprnJXA+sNERNzQ+UcFzLBIDkEhqbnp6p5H2a6aHz5D8X8/+NB2s3KlNXgEMSVD1X62822owWAvpBg/T0dQN19XIgp8jSUucowrC/Ek4D4fDULOSi0dPsQ0Libcg7/yIylm91MKr4QhLcZhfRL6e6zgvFHGL8/V/hsT4C5oi7A3t6FXMsZUleJ4ffjSVUOq2+sMD 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 058fb748e128..64014b656a0f 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -582,9 +582,9 @@ 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 - * the protection invariant for calculated effective values for - * parallel reclaimers with different reclaim target. This is + * mem_cgroup_calculate_protection calculation 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) * which would want to have effective values 0 for targeted reclaim * but a different value for external reclaim.