Message ID | 20230713121432.273381-1-linmiaohe@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;ybw1215001957@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linmiaohe@huawei.com> To: <akpm@linux-foundation.org>, <hannes@cmpxchg.org>, <mhocko@kernel.org>, <roman.gushchin@linux.dev>, <shakeelb@google.com> CC: <muchun.song@linux.dev>, <linux-mm@kvack.org>, <cgroups@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linmiaohe@huawei.com> 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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771309568393491902 X-GMAIL-MSGID: 1771309568393491902 |
Series |
mm/memcg: fix obsolete comment above MEM_CGROUP_MAX_RECLAIM_LOOPS
|
|
Commit Message
Miaohe Lin
July 13, 2023, 12:14 p.m. UTC
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 <linmiaohe@huawei.com>
---
mm/memcontrol.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
> On Jul 13, 2023, at 20:14, Miaohe Lin <linmiaohe@huawei.com> wrote: > > 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 <linmiaohe@huawei.com> Reviewed-by: Muchun Song <songmuchun@bytedance.com> Thanks.
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