Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2630621pxb; Mon, 17 Jan 2022 02:28:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfuX13rW12nU6ySFFqNRlsw5/sth8a4Lkxr2XoWhsc3deX3H/ZXYYYM4Cq2A/LOeKHzogX X-Received: by 2002:a17:902:e752:b0:14a:b35:2fbb with SMTP id p18-20020a170902e75200b0014a0b352fbbmr21685479plf.142.1642415328203; Mon, 17 Jan 2022 02:28:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642415328; cv=none; d=google.com; s=arc-20160816; b=uvELp+LCwG0K1q06j6mE7xEJ8vLAmI/N56TX26DnrHg2WwzRS0u+r20QQs9aJI03XU hkElUoCBx8ndgTsbvt/uRmrzrh6aZXo0gC33qhG3rIxjAZ+kKsoPeaK+a2r9ZA8a1E2z enXfa3VVb7zJBYW6l8mRVFXxFlLFgGgTxIuC1myoNH6eIykOaF2Eig89j0RzXrPV4WZK 9+eWcRy05OSx3XFdIzsgyzHdHLm1/HdqRgrvRqOkneNxtfo+oIvZT7J07fSjKh1tkho1 YPNlHwHCliekiMYZo2gyDAsdl8/eGf4RwpgHs0Jq9dflEQi+J7HU/UVnb3IN+KLgpcBm S2sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=32ZGPXHe3Ged0KnD2WiQsFB3QGx2BbSWPhOV/bW7jNc=; b=GR+p25ou9R+thzi6rwv4lMqrRhg3wcUDlqI6TuDgVq1INVVahd4ElPBnAB8KJL82pl jfrWqL4Vm0K231sLWAcWJ9rI0BqButfCZvLrnXhDnK/+xgiXPMOtKHGVTEffxzgc703Z 1u2365j4YOrJko1BkZWSV1enSnktJxbTaggTvB93FFGqHQ/9gLOA1ceFKS9Iod5ik7Wp JNmNyluBeA7bChg5SRAiCfWrZbymopwzkJlu2A+cE8z8ZpIcO8SHpPqiCdF5afrBnU5G uciz/WdROv/DZ75q70jPJJXs/qhUQ25Fk2cCGuPH+wQbhLSp/tkDBx4iStoNj4XZMxhg Gldw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=RMd20O9h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q12si17978055pja.2.2022.01.17.02.28.35; Mon, 17 Jan 2022 02:28:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=RMd20O9h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236099AbiAPTyj (ORCPT + 99 others); Sun, 16 Jan 2022 14:54:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236093AbiAPTyi (ORCPT ); Sun, 16 Jan 2022 14:54:38 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15678C06161C for ; Sun, 16 Jan 2022 11:54:38 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id x22so49768167lfd.10 for ; Sun, 16 Jan 2022 11:54:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=32ZGPXHe3Ged0KnD2WiQsFB3QGx2BbSWPhOV/bW7jNc=; b=RMd20O9hiJ+E++mZyFCDgYsG99GnasXx9c7mZSzw0rI5QCZRUDgY7035Y/jwkEIhET //SyReKW9JjjJucOIxRqhB29/qOd4FJouwJMwOq05gVXJnoAaw9T8BRB2KyG/rTWdf/3 JChxfan6qdczRC8W0KyNqWCcGtDTmC/Dkg1vIrMMrJS8DHl6PHjNIY+V4aHI/Ct1MUx+ eWAX6pjHBWif9lJixach4FExApXyy+orxoCRlPl5egBwUKbfvgBbI0LxRO4uqztDVEGx zcs89gRS7lDl7xhNTMO0tfkzqTOrF99K6B28pwaFimR4JkOr12A8c0sB/e3NKvoHqzWt KJ5w== 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=32ZGPXHe3Ged0KnD2WiQsFB3QGx2BbSWPhOV/bW7jNc=; b=DX16dS0F1sqDb+Fbe9Exby1KvFFtBsucZym9bQHbYkCJ1our5fKDdYIZkd+rvwGBy6 Ry06hQsVMg59/Sft5t9WLuptiTkO2rSY7Fp7mx81mZFD674l1f3yE+uoJQa6ZjhKn+Yl Or1pI9P6HbHYKvsJgHUgx4XgemYaxtazWwlklc1cIaqRhiNHybHWldxtzzuMtIF9yP11 HN3Wjhu9wnP9XvZsbdttNqUTE1HI8EaOQvVCm0kfAL4qXylbd7GGBiBONkNFXcecwAu2 szId0Plsev/cWOPz8lX4gM8i2ignBunYIJI1+EUZy31aK0PG6bn1Xye9v6Hkm/LNDP8l uxww== X-Gm-Message-State: AOAM532Lsbs65xMvaj6KDjxUPnvtESHeTbAz/Mo1xqq/iCi+cHV2riBA sG11WAPEo+LaT6yef+MGvWjN7iWiALEWqkFGgrbwTQ== X-Received: by 2002:a05:6512:33d5:: with SMTP id d21mr14534416lfg.8.1642362875855; Sun, 16 Jan 2022 11:54:35 -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: Shakeel Butt Date: Sun, 16 Jan 2022 11:54:24 -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 , Roman Gushchin , Vlastimil Babka , Matthew Wilcox , Muchun Song , Yang Shi , Suren Baghdasaryan , LKML , Cgroups , Linux MM Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 10, 2022 at 5:03 PM 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: Shakeel Butt