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: 126954 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp1082307vqo; Thu, 27 Jul 2023 06:03:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlF411Ps/57ZeUVzwnwJaCAaQgQwTCFhH1zp6PDFNhe+OJn9bp/orooYggkOq7udt7TOwm/c X-Received: by 2002:a92:ca0f:0:b0:342:1012:1196 with SMTP id j15-20020a92ca0f000000b0034210121196mr7006100ils.15.1690463026733; Thu, 27 Jul 2023 06:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690463026; cv=none; d=google.com; s=arc-20160816; b=IZPXw55Hg3tPL/H1JD+O4UvQdlJD+cnRhqJa8if3YNUuscJTFnux3y942BNJnc6Mm8 p9B7QooVW+xz7Qmr8GzAf2IzjV6di4pjv5EVXI1cZ0Kbb/btbVGyPXQiLcgy95vKTwHw E19jUsfq6BmPaakiMR8SSui4SUoHcFfKAaUpPuFMa4ruMj+BcxjK8PbiUEI8aEmIY3A7 1hrxhIRCHMhBo7nLp/5z9wX5f/bNPpZDKUQrkNSqQans8b5zq1r9GJmEaaSUaJHbfTy+ dk1E9Az6x5nKYz0iUH/D4EqeI9GI5eltNgFTwolOSPVS6ux+FRi4sjx9ctPujdnsxYpb rZUw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z10-20020a17090a540a00b00263ad259d9esi1368102pjh.0.2023.07.27.06.03.24; Thu, 27 Jul 2023 06:03:46 -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 S233615AbjG0L7s (ORCPT + 99 others); Thu, 27 Jul 2023 07:59:48 -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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772578958807931499 X-GMAIL-MSGID: 1772578958807931499 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)