Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2353726rwb; Thu, 27 Jul 2023 06:09:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlFxemo5o9q8cAb2l0zkEV6ohOlW6bbz+4fYySnNS6NcJIgL67ThBtllCJVr53npL+2AHQFd X-Received: by 2002:a05:6a21:3383:b0:138:1c5b:2653 with SMTP id yy3-20020a056a21338300b001381c5b2653mr5042113pzb.41.1690463374775; Thu, 27 Jul 2023 06:09:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690463374; cv=none; d=google.com; s=arc-20160816; b=mybcxy+1EKWJtRVW59unzkX58RFhmOD+DCervchZ+StjrPQMZh9DiWXWISyNE6trv/ DckL37fQo3SriE80AaR4sbk8bTHBNk1JwHtwyO9FldaQsaNrL9EjQtt84felLwm42L1p nb+wFszMm7DzJC0FLGiZ9koCwnL+xak3GBvQVgH8e1mm7z7RYVGdkLIkgms6NT+O+8nj WvQWCj2Z53kyZAj/6RNFbKr47UakiTdpXYVC5J26Bmbe5dqmIeYRpvVPYwYhz8cLlZGr JD6tjOnxMmd99Ue7+E54PDibb3dLpllJizlUxNyROwaNEAhZFKiiLtYwKL6jML/I0Aid 5XrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=8kbSNbViP144t+RQ3l79Y2z90Ma5Nwq6RPh1Xtm8NdY=; fh=Fvc7vtT7NQTOyr+01kCDBGq76u5S0XFqCK3o5Jm+F8U=; b=l2wrmqkedunWd9V5O7DvClNdAa+EyCGBuozJXB2TNejGhOMVm6JXbI8U+QGjDLH4d2 1G3JnV6CnnIK8JYiBjlItETuC7JzlSDtlCXJeJEWVC8t1IE7O/P8+nsKKpGLhd2gcYXG HWg2xsntsd0S5q/H7wrtwENUKCWYFPjIPdGrEOt63hMNx/VhgL97MGEm9jcpxKGEne1F xrFkY0FIPc9xDQ4o75l5ffKYqz+iLF4lM/clnrZeK5V5l0I+ns7sMmHTNWSU9BO7CONx n3qzhJo8iBXTUt2cO2cSIxgrua2ntTb9UhPPslJb0vHOKYqjrhSwQUs/XMcVfBQ6DTnp lLkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t11-20020a63f34b000000b00557531eafb0si385497pgj.559.2023.07.27.06.09.22; Thu, 27 Jul 2023 06:09:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233607AbjG0L7r (ORCPT + 99 others); Thu, 27 Jul 2023 07:59:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233431AbjG0L7o (ORCPT ); Thu, 27 Jul 2023 07:59:44 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D771272C; Thu, 27 Jul 2023 04:59:42 -0700 (PDT) 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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) -- 2.33.0