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: 13311926 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5A4BEB64DD for ; Thu, 13 Jul 2023 12:14:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 51871900004; Thu, 13 Jul 2023 08:14:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4C9198E0001; Thu, 13 Jul 2023 08:14:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3B82B900004; Thu, 13 Jul 2023 08:14:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 2D3818E0001 for ; Thu, 13 Jul 2023 08:14:31 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 03F161A020F for ; Thu, 13 Jul 2023 12:14:30 +0000 (UTC) X-FDA: 81006481542.09.6F2EC53 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by imf11.hostedemail.com (Postfix) with ESMTP id 5C9C44001B for ; Thu, 13 Jul 2023 12:14:27 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf11.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689250469; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=X5VEfbFbkljbUMlppA0tlLuy8tGedoY2bMLVDY45B6U=; b=DaUUDr2iEv+QlnXs/rYG6tHTEOyJ3Q/bjEW2IJhYSuLDGiQL60Cfh8qZMuQ6VwYVcw6/WR /lZuoomN21XDC9QJmIJuBdjmYr79cS/zKCfxj/7jSwrgNy1NSkr6Vkc+EF3poFVWTLuktS Z7U3jKegguJK9siSfrqSZLC09dj/AHg= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf11.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689250469; a=rsa-sha256; cv=none; b=8RIW/6EyOfI5LlXwxaAbffnul2yJvzVHDdDNYNYcgy8nltNPdiJod7YUEpF9xhppX7XCxw CVGk1rCXI/z+DYBas6WbU/mKpuSSQG+HMUAimReGokBAq8ZDeUVNevN5bniiHeCKIJWGZv L2MYb1qgnhMcD2RDB2KP7/9puRzD5Lg= 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-Rspam-User: X-Stat-Signature: 335t7u5zxbtiyrgttnpy96c5fdh8qx89 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 5C9C44001B X-HE-Tag: 1689250467-177634 X-HE-Meta: U2FsdGVkX19J8poV13wFoltjfQsV5Z2LxShNVDVTfDSb7Mu3/NBgkz0hByHt8XFSNQSCMUvk73M14gFr2k998MXucAx3xs+3/LEvVJDESoQs+gVE7hkq2BtToSYriT1y6ft8zmgvltcBmgANa0xQ7aa2T9GBLDYBkxqEQqAVEbjX35zouYmGgDvw/Q+tMw8fMcN5ar0G9nbStHpQPSEpka9px69IADW4EdMqvSVv4YhLv6mbCA45ZHykka6M5badWdvYOaddu+p4uwuFWxs1zxlLrwm6XQ1DEGfIjqSc5mHrWwcJqXlAEv7vXX3wYvoJsptGbxtWIklpOuH7MrpdIZcIfwd6UlJ4Pji7z6rzP9y2rG8j+NtUHMW67wFMPa4UhLWPsDSSh4bgp9kwC+3V9lsHSACY0mW1ejzbazLWGK8dFouCywux8pqDSzUvvflcCn/dbYRJnQx6Gf3qA/1ClbcnMrpc1gsbR4w54NTNraERdsDlgUySOhlW2z5jHXx2FCRVQWdhwyLecGiNN1w+tP+2M1VWG34kl93s2SNz/CVfAVKgUpJ6isi4suDcuDKPKEDsL8aKCD9SfJnZyqMDqrtnjLy+XwvQT51z4J8C6NMMhsTb9zIVNhj8JfcalRxK2AEn3THN4LSEKQpazxNuMUWgaW8KUs1n5yjNPY8PFqsJMzjIBasqlXRRwLue8TDrNymM7jsodoVcHXN4aBCDQSFFNUari7Wo37ZSEv1s7wAA9T616L8zgTbu4sMzF4RdF4jI5GeJrH6WF4tRRyMnuiGxXI13F7CrK3GrlFRmFNRSnyq3NoTJQQOIQM82cQC12AptRjQI6H6sz3wFvpJrAPWP0rSjWilnGml8ipD3rxQClYdSpxygNyhApQH72uLFlxG5Nlj+tDr2STSx3klxZRsMfax+HaLU2gHvrM5vFlx/Hip1Vtj3NWmzSqHJ6edZeHWu4tF+EBAzzoctlZ/ bXkBbRjd 2ygdIJR/MWz+GRXFBbW+nau25Ixh/bcwzHP4MgxWvSz8tf2CUFoa58OuBoeTHCxcI4e91bd+ZiiirroTHauXHcTor7/K+avLFQgcpjbA18HxzUVAdwAu+Jz8khpwdRcHEqL5iM+I/ZccyBu5BTmP+GiNF0Evn2pTqhDBz0dk3uWhAjnHO+CSXRet+xK/b6q27RaXi X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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