Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp1689461rwo; Sat, 22 Jul 2023 21:05:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlFE5yMHRiIA+0CppsQ//M7yqg0LFSFOO/FJIowe/2yZ8QN/cONwumrNU7xtLYyplICqG7Mo X-Received: by 2002:a17:907:77c6:b0:987:498a:87f6 with SMTP id kz6-20020a17090777c600b00987498a87f6mr6041473ejc.34.1690085118294; Sat, 22 Jul 2023 21:05:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690085118; cv=none; d=google.com; s=arc-20160816; b=0uz1q0LIayTHl17o2HvxrGXZF3xnKgXRpU8ztf+yIxjEKqljeTsxEmxy021tVzRNif /BDxDLuYxnx1LZaGLmfhaPq1liEdeMilGPKmjQRUJUjB1oS6VIpYOJWn/0zxy4SEGM93 rUeo3U+Nxz2Ms3azwCTmamc2cfEM7ZtfX/O6/sU12jpQZ7l8b8RSEIx0QoUSWa8vWWYX qMDjWFrjie/LVwAu5yO1COVMfBOorr95N96V/FeDXKcb7Op20lP4rNgW1iwdbLtMQTIR 8Zz9eIuy6EpRJtm3bngTNbaYL2KhD6aC1Ap4MBxtbDdBKmfXqNG5Wgti66oo123IILpg g/4w== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dc5-20020a170906c7c500b00991b774b3aesi4465260ejb.652.2023.07.22.21.04.54; Sat, 22 Jul 2023 21:05:18 -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 S229623AbjGWDZp (ORCPT + 99 others); Sat, 22 Jul 2023 23:25:45 -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 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=-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 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. -- 2.33.0