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: 124414 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1088316vqg; Sat, 22 Jul 2023 21:04:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlH4qfWYO1StGeswJBZjerfgaGMZpdz5P/aGxqjj46tcipgCZ27EkjQD6CUwYAkvn7+0eYon X-Received: by 2002:a17:907:a058:b0:991:b292:699 with SMTP id gz24-20020a170907a05800b00991b2920699mr5201193ejc.5.1690085067631; Sat, 22 Jul 2023 21:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690085067; cv=none; d=google.com; s=arc-20160816; b=UF1tDonYbn6UvZe+nW1ZrYJg93p3nwGAAjzpiJEAPzNc2cZ2URLld10fJ15vmSWIAa AYwUkkUFGfHQWJaUPt/K3ZBUvrDZZEa0Pw/YmSJaOl5ExkSgQaRHTmiz6EOg+JJESEy7 4MCkcGutjIf9Zn2+5aS47b07HX65BY9i6Cnbx/O9o+8V6OzdseUKlg1chpWi2rYbd+KJ zMF+huDEiZlpQkoNnI8VBz9HqyoPZKp0rlMk6VxYImx8Sd9GD8PzvAB0rUBK17jOAcih 2LV6/jAUHc5We3W3qh5HW58lGZaZ+J6WMmGXb2497/vlpusIGJAaHIAbdx4FlhWCt3XN /oxw== 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=gRBdmFySjDQp6sxJPnOJMnl02WHw4mhmxi9UgCXZKfM=; fh=Fvc7vtT7NQTOyr+01kCDBGq76u5S0XFqCK3o5Jm+F8U=; b=Ob1uFqPIgQ+xUOo5dAYp5GteCcwiL80bo7/rWQbLYix7KZJQBatjoJx8LCa4DJCNz8 u0R4GCRGdTmkoXmogYOGHSfcjakxUV3b/NGKDKnpR0LuMY2+fTlinm4A6J+QBjBlzB9N FrvrSkXkbflMZaubeoVJ+WhmARNUuui7QAxHkwAfLZfDb6DH4RHkWvT9u+ryNjUyorMc Ikz5BpP8qq4W35WymvnnV389oMSjtKFxIkFQAuPJWydDIHcj329AU8YFFMpsmikT/31N Rp5kR+MR1evExn+ANPVc9GjvnRm+3tJYZbhMedLkZ743ehrWURI8UnuPYKz/9Eyg9MAE wL5w== 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 y20-20020a1709064b1400b0098865b84499si4456543eju.433.2023.07.22.21.04.04; Sat, 22 Jul 2023 21:04:27 -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 S229643AbjGWDZq (ORCPT + 99 others); Sat, 22 Jul 2023 23:25:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbjGWDZn (ORCPT ); Sat, 22 Jul 2023 23:25:43 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9762C10CA; Sat, 22 Jul 2023 20:25:41 -0700 (PDT) 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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: 1772182639873785712 X-GMAIL-MSGID: 1772182639873785712 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.