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: 13336652 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 CAAAAC001DF for ; Tue, 1 Aug 2023 12:44:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 29A3294000F; Tue, 1 Aug 2023 08:44:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 24A6B8E0002; Tue, 1 Aug 2023 08:44:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 139EA94000F; Tue, 1 Aug 2023 08:44:22 -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 00FC58E0002 for ; Tue, 1 Aug 2023 08:44:21 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id BFDFB140554 for ; Tue, 1 Aug 2023 12:44:21 +0000 (UTC) X-FDA: 81075503922.27.AFF86DB Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf26.hostedemail.com (Postfix) with ESMTP id F0DC1140007 for ; Tue, 1 Aug 2023 12:44:18 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=none; spf=pass (imf26.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1690893859; 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=c9qRS8Si4YwisiRdQD1RuaHT3zWvLgZ6ZHIZP9IDV3Y=; b=E5WNA+BURQXy0YVplVOGnwRyHyzivgxjlTX4/PJIpq4HqvxG9XVrx/574Q7EnY5EspyAk3 xVax4CcgOnSQtJRUxsDwjUV1Kub57WqTeuUJXWkRoSSHxO+Flxm/owy9b/s1Hy7Z7s/CQZ sp0nG9y8jOdaLreO9IX18mPXx3oJt+U= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690893859; a=rsa-sha256; cv=none; b=az+WR8wZurgWXmshFB/qCO1+3odD/Z5TaKLmZyI0UB9JzmQHJ2WOnOvykVwlSQRJ7OOjLb hPUpUGGF6k/5qHjTQNQlqr/bEivXkbI95WGqBn72+o8eOuXXBgFp4Y/JRlDJ/mkf5JNCFk Xf/J4aKbsnyVQFLv1UmEQKpyxnLspOA= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=none; spf=pass (imf26.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com 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-Rspamd-Queue-Id: F0DC1140007 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: 4951xudnx1mr4f9z1cm1oone5465ck33 X-HE-Tag: 1690893858-769716 X-HE-Meta: U2FsdGVkX1/zn8prJUDTosysgog6mpLJ+562lBiHNKRR0soh4OmXUlhwyhhhV7PtYdrMObkFucQgIPCccU4Ke44N1kxmhScWO6BcwG3huPBahoLsYrPjLEu/eLXH4gDhPp1i3midXbpdxJOp3PizeXFpJN7sS6orhktslDk581V7NlDbE9Zc2RfzhydpnokyPnSjFdOkaB7ZPOHBuTMIWx1AkE7pXeCpmqcYH68Y0iftKOn7QluZdIxhXf7X19R7ibma++KjUPc3wvA6EQ1MhxKoWV4reXxy9lapdl6LE1XTpZD2c3LCBWd/sWyPs6jAzJPriw5/qnwqcBGSX4m3aXP8mSV+UyLtxkXEezTJVNYSwUNyh0RGwQdlSPF0od0BySydSDQkMrYwbXKEfyda1+rcnNZCCW3qECMAjSv3yKN5YhybimM4DNf3s+IOlWSRQ0CrqHw2smc3uWljoadD/A6U4E6ek67eClXTiRblYEEiQ8unz+1rG5LwLLVAL3Iingeun5Qvsg5ILo9c7z5yQkYP2jmJMzRbfaLzsQHjk68YD6Rx2f977a79xuNk/uKoHq2xatDcJVJH/qt7B1kv8/CqvZzbi8ZlnNdYODxdJx+yHCZGIiiG/jvPOX76AR6OP4Db65G0PxtsoRpmIdM5GJPW/8o0oL+FVrLllrQBhg4jrSKEnmF3naecyXu8iR3pZkzAWOVDXOymXQaKHPdeFV0FwATo/YhAsTwLAlSiZ3eseR7Vd3v5RuwARKuEl93UC3k5CSuF8oHm7jPrKHV6StdPMNx6t3zJ3GYxuzQJo3ix59CD5JrhA8ehQY81T4bqmfobJNSTdrIiiwCrmO+bS+V9uS6s3qqS4Z/gk+HnXssoE9M+Q5vfZSmXzpsVxFWfJITz1/OExjAjeMDh/BzX0RmHCbP5vF0xg0fX+6Bd/65S7RxxX3Q0Q6pzoY7LvK+fsLhhLpadjtmnXwF5knj 97xoJKxr lb1Jl4prfKmRZNfkh7lFESaVpWI4/ULfqOCjsd0hqieEqfQb+BY5rGHLY/M9tkgsGmkN0N2SOpg86dXHy32H9yljIFzwHty8xAwzEEEYTiTzs1mMX9UUr9z8t3BmDUM3/I0WwbaTd605sDsOoiiS5Qovwluh/LLyZPn5fKJfX2DMb4rcLTZ6mt2pGh2LgNZd+AOOz 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 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) {