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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9879CC433F5 for ; Tue, 11 Jan 2022 03:13:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235004AbiAKDNW (ORCPT ); Mon, 10 Jan 2022 22:13:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbiAKDNU (ORCPT ); Mon, 10 Jan 2022 22:13:20 -0500 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AA5FC061748 for ; Mon, 10 Jan 2022 19:13:20 -0800 (PST) Received: by mail-yb1-xb2a.google.com with SMTP id 127so27302542ybb.4 for ; Mon, 10 Jan 2022 19:13:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vePxboaj5Wzxcx+RQdgsE8w7bUmtQir6BsCsMhN8f0c=; b=ieCdWrzviTyUE7447aiXEbq7Rt8+vOuuPSLhn3BqOqU1oZG6sXDX+a7WFqsctJHyaA ftggmDSC1l1LOiLOUfTt2HTtmCfX0IqGvhiX6E2oNnaL92Sp4+6ZLshokZq+F/IQrxBP Y4Lbi8/N8rSslC2ktHdn5M8vuK4gWImnoyQ4xHxJWv7xOjIR8K3d0eq52b8qSDlk5nRS UeJiPGwXFKD3ErfN1RYhYXXyjN6qoU2dZkWxneN9bOKYcH0O26+bkzyuER3wnmBINvJa 8xB+Z0jgKHtuO6V7z5iytxsXLRTVAR+70Bo3X1jS9nsDSDUqIRoJf5CwQrAEDV5RGjS1 cE2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vePxboaj5Wzxcx+RQdgsE8w7bUmtQir6BsCsMhN8f0c=; b=bbQ2uhHgDESs4YstkFaQbeKZzdKxbUXKsmpFux0b4lNijUZVGYfU7pIsodMcnFCEyM w0F/udzbtFfw7WGnEX6X+jCeNc4S2p+H8kV72jYkvQwE9Pg8IcbfSTOUYiFm5cBj9YFD aI2uO6jmgYd4upxtxojYjXpSpmWkckH7yUjPCH8uqtn1QnF/fFgi+zXyjKWi2kR1t1ts dAQ/hbsRgxIIGJYd83Bi0Lev9BgdvcTztYdxcypkzLqg6yF+oeadR8DTKxV8snxFkMV4 2OQ4JssxqMa8/pfpw3XAtds7VrNgHK6WOsYBRrvJGQ6zqjRR2qaXiUrjf3XBsuQqN05U N7sQ== X-Gm-Message-State: AOAM530Oh2o0gUqO/ZzAKvbjO2fbmLpQ83Lyf+9hJQVjh8yPmuHL6kig 2yuIy+sOPs7YukkZZ1cxOl7mSpMTDpnoqyYweI+zJg== X-Google-Smtp-Source: ABdhPJxJ1BepqUyd1pzpNRrE6pPyLX0NLCHbYv7gA//bljqCSN0Jm91c1toWTFXb1LZT4CQq7q4HgxJF5bvwXhX8Ci4= X-Received: by 2002:a25:abcb:: with SMTP id v69mr3684966ybi.317.1641870799625; Mon, 10 Jan 2022 19:13:19 -0800 (PST) MIME-Version: 1.0 References: <20220111010302.8864-1-richard.weiyang@gmail.com> <20220111010302.8864-3-richard.weiyang@gmail.com> In-Reply-To: <20220111010302.8864-3-richard.weiyang@gmail.com> From: Muchun Song Date: Tue, 11 Jan 2022 11:12:43 +0800 Message-ID: Subject: Re: [PATCH 3/4] mm/memcg: retrieve parent memcg from css.parent To: Wei Yang Cc: Johannes Weiner , Michal Hocko , Vladimir Davydov , Andrew Morton , Shakeel Butt , Roman Gushchin , Vlastimil Babka , Matthew Wilcox , Yang Shi , Suren Baghdasaryan , LKML , Cgroups , Linux Memory Management List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 11, 2022 at 9:03 AM Wei Yang wrote: > > The parent we get from page_counter is correct, while this is two > different hierarchy. > > Let's retrieve the parent memcg from css.parent just like parent_cs(), > blkcg_parent(), etc. > > Signed-off-by: Wei Yang Reviewed-by: Muchun Song Thanks.