From patchwork Tue Aug 1 12:43:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 129298 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2656760vqg; Tue, 1 Aug 2023 06:09:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlGAu73eqeHOoO928QQ6G9O8DXogSVgtSp/d6azfkfRduISNYmv2yirX8Kzryd4K0iB5ueQg X-Received: by 2002:a05:6a20:552a:b0:13d:ee19:7717 with SMTP id ko42-20020a056a20552a00b0013dee197717mr3647825pzb.19.1690895369829; Tue, 01 Aug 2023 06:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690895369; cv=none; d=google.com; s=arc-20160816; b=Iy5BESqc7HLzuVaDpe7lBNk9X6vs/lwn7qJv3U6vDuuVGnCENcRl7FCR3PcGQWs0zo uYkqIwqC10edzZuD7a7VgpyrmDYD8YgUcpVLRcptBxvx4ERSPtdMHNnQt9NE8kmtNCjD JjDEGARkVh2jP5ArUB3nYFN4XSaftKSHove+rCxm/qnuA2cr9/kcagtl68EP7WRhIRux hvPA4mCfiTzXvZKIlmKMHo6D377lZcNzbckFTyKPlDj4ednNCq/ezveUwPgvsPqa3Mhi NbPgvO6p1jTK72aQp46q8zb0FcOzq48YnW1V11d+11Jh7N4Ep4DiW0/pEFqczxRhqaWY 4CGQ== 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=c9qRS8Si4YwisiRdQD1RuaHT3zWvLgZ6ZHIZP9IDV3Y=; fh=Fvc7vtT7NQTOyr+01kCDBGq76u5S0XFqCK3o5Jm+F8U=; b=0EhQasmJ8xD06FUPwqrh9kmIJnueG/b3tOPIS4sOSHprqBzJ9of0TJN40ZRMnwwN/k ZNtsFPdkV08Ge4cnBxLtdU3cbDEemh0jNBGnq87umDJKVw9qfv3IdsIEYEMQ23F+M0+8 7eVQapmILexIOW0f+nFNgxU5DocEhWmIBmmEwZEijkxFV1amiHbfBNT6MN1QrZCR8ih+ ku6b2YhrIS3ysRJ1gsAmv5qZwPvgIdL8B3Zm+N+KOcq/gpfU9iJWamF+wCssfRajt187 9hs8dfYmgElLejk9TWC8mXmviWTbcCiC7AalpQVTPPmCJYP4d60HdYNS9d1+0egDO6Fw fZ3w== 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 x35-20020a056a0018a300b006875bd6d8d9si304049pfh.169.2023.08.01.06.09.16; Tue, 01 Aug 2023 06:09:29 -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 S232477AbjHAMoR (ORCPT + 99 others); Tue, 1 Aug 2023 08:44:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229719AbjHAMoQ (ORCPT ); Tue, 1 Aug 2023 08:44:16 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AFFDE6; Tue, 1 Aug 2023 05:44:15 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RFZXG6M7kzrRgk; Tue, 1 Aug 2023 20:43:10 +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; Tue, 1 Aug 2023 20:44:11 +0800 From: Miaohe Lin To: CC: , , , Subject: [PATCH] mm/memcg: update obsolete comment above parent_mem_cgroup() Date: Tue, 1 Aug 2023 20:43:59 +0800 Message-ID: <20230801124359.2266860-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: dggems705-chm.china.huawei.com (10.3.19.182) 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, 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: 1773032303529190614 X-GMAIL-MSGID: 1773032303529190614 Since commit bef8620cd8e0 ("mm: memcg: deprecate the non-hierarchical mode"), use_hierarchy is already deprecated. And it's further removed via commit 9d9d341df4d5 ("cgroup: remove obsoleted broken_hierarchy and warned_broken_hierarchy"). Update corresponding comment. Signed-off-by: Miaohe Lin --- include/linux/memcontrol.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 3bd00f224224..11810a2cfd2d 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -863,8 +863,7 @@ static inline struct mem_cgroup *lruvec_memcg(struct lruvec *lruvec) * parent_mem_cgroup - find the accounting parent of a memcg * @memcg: memcg whose parent to find * - * Returns the parent memcg, or NULL if this is the root or the memory - * controller is in legacy no-hierarchy mode. + * Returns the parent memcg, or NULL if this is the root. */ static inline struct mem_cgroup *parent_mem_cgroup(struct mem_cgroup *memcg) {