Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5649868rwb; Tue, 1 Aug 2023 06:08:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlFYo2u7FUTupso8P7U54LHr+FHG8rhvH3KKxvnvnc3QUsl3Cw1soGaB0mtn63GNDaBMpXum X-Received: by 2002:a17:902:d4cb:b0:1b3:f5c7:4e75 with SMTP id o11-20020a170902d4cb00b001b3f5c74e75mr13544713plg.58.1690895290811; Tue, 01 Aug 2023 06:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690895290; cv=none; d=google.com; s=arc-20160816; b=EtYiYBZp0QW1hvP8fHhL1PVO8oWXF974D0Fdkm7gNAqfzA8Yxi+/ZfSYqnFm+fEsCA MvpR8CbOrYHTW0wevmShdtEpO53QHOueBDDECCAUXoi1fW2ogtAZEXhQ9Xl46gPirdm2 rQyjOR8OMMFgZZNhhqlpKtfWfc0HEZbLX3DXJ+ukCrD2MO1mX8G/bzx2XCNqAODAb2oY Q1AzzXKhoPM3uglsZ9PW9pgc2JW0xPNufRtqnxLso++RWwNeTUniFd/Lg3gILr759z1x 8LBEU+PlFNT4sokuq7zCM1oklyB8DJEF/Prl1ajsp59X9P4JnAzzHueT/tdH1hJkUK98 JtFA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kq12-20020a170903284c00b001b89bab468esi8763029plb.107.2023.08.01.06.07.58; Tue, 01 Aug 2023 06:08:10 -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 S232415AbjHAMoQ (ORCPT + 99 others); Tue, 1 Aug 2023 08:44:16 -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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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 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) { -- 2.33.0