From patchwork Thu Jul 13 12:14:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 119845 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1797948vqm; Thu, 13 Jul 2023 05:47:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlGjFBrbctBbF4eSpnWIaiNFUbHZG7Iy1SBxxvXDRAW7BvHbplPTqOcvA3I6P++Vv6MqV1Dv X-Received: by 2002:a05:6512:2523:b0:4f8:7325:bcd4 with SMTP id be35-20020a056512252300b004f87325bcd4mr1393220lfb.0.1689252441637; Thu, 13 Jul 2023 05:47:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689252441; cv=none; d=google.com; s=arc-20160816; b=nWb55W984eRhKKsFJjxTKygEMGgxVSVw1iLHuJEWEtSDB6T8+pVvHJSsDCqbRQmEKE d4L0tQfyZApXTa1WF1zh+V7RQ8CnSVctkxMfXX18NhgHPU4ytAEYNnmV4an/su4KH6JO jmB4Ln95Y90igr9IqYHIS89/JY0gJQgF6VnFh+0slJ4C6b2AUQ0cqDWKvnhh09GdG3ka 5KK1xecb5MWURvuS7qSJvlYik6dyhnwx7fzP1trl/tUbmkTnzVveNzmQQ+I4n0PUfFFn jQrzw3VaEUWignpJM/jiNLtxAC8PfYHl9qTllNjNURQOn9Ajf+1IDAH8ivRND7XYC9QY kPcQ== 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=X5VEfbFbkljbUMlppA0tlLuy8tGedoY2bMLVDY45B6U=; fh=qzFN4U0kifqIfd7P07Gk/0coMp1+a18+XFLbwN1xCUo=; b=y9puO0FiRuvlqPi1YP5dV+SJc5Yapb7uWlQIzRfOPrP2ta63QXsS28L/4zOrs6rEj9 rFvYMH3gpOAhjuG+o80mP5WurDPXCXzhT05woLg+AWcvT3QGULPH48DGtrMOaaumP06K qKyQhC1x/YgWuOTmvK78rmNhE/al3GEBdHb2CN2PY6WCl3tzQLboT2EvAEfEEmY871+h Q/93U38t5CTuzp/ixjl4uzfWzkdIJXppS4yROhYKLYQGYnN1CKfkuaqSTrKaSY2ue+NY qnoIUKZOYl71HvngxVXHrv7Uq7E8+g+MdmZtDG/Zc1fkstZpSaYuqbdJzz8rvk7pKzEb i5Hg== 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 r4-20020aa7cb84000000b0051e24cc65c0si6993443edt.669.2023.07.13.05.46.57; Thu, 13 Jul 2023 05:47:21 -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 S233749AbjGMMPY (ORCPT + 99 others); Thu, 13 Jul 2023 08:15:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233181AbjGMMPW (ORCPT ); Thu, 13 Jul 2023 08:15:22 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E78AC2D42; Thu, 13 Jul 2023 05:14:54 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4R1tl30qWczLnhW; Thu, 13 Jul 2023 20:11:59 +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, 13 Jul 2023 20:14:19 +0800 From: Miaohe Lin To: , , , , CC: , , , , Subject: [PATCH] mm/memcg: fix obsolete comment above MEM_CGROUP_MAX_RECLAIM_LOOPS Date: Thu, 13 Jul 2023 20:14:32 +0800 Message-ID: <20230713121432.273381-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: dggems704-chm.china.huawei.com (10.3.19.181) 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, 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: 1771309568393491902 X-GMAIL-MSGID: 1771309568393491902 Since commit 5660048ccac8 ("mm: move memcg hierarchy reclaim to generic reclaim code"), mem_cgroup_hierarchical_reclaim() is already renamed to mem_cgroup_soft_reclaim(). Update the corresponding comment. Signed-off-by: Miaohe Lin Reviewed-by: Muchun Song --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 3eaeb69ef9f5..93e3cc581b51 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -197,7 +197,7 @@ static struct move_charge_struct { }; /* - * Maximum loops in mem_cgroup_hierarchical_reclaim(), used for soft + * Maximum loops in mem_cgroup_soft_reclaim(), used for soft * limit reclaim to prevent infinite loops, if they ever occur. */ #define MEM_CGROUP_MAX_RECLAIM_LOOPS 100