Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp967948pxf; Thu, 11 Mar 2021 21:21:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyV5ta0pVwxeLGI8ocs8al0Lh1Ubglw7ehTzKiyco4aWmVQuJqrBVsaboADjuU8gRgEVTPM X-Received: by 2002:a17:906:5453:: with SMTP id d19mr6495556ejp.150.1615526516455; Thu, 11 Mar 2021 21:21:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615526516; cv=none; d=google.com; s=arc-20160816; b=kWI1rPr9R5vw7Rl46izHTzut8nSBZk6J+//8pRNH2dTmQMIpm1HZf9u1Vq8rjMRH3c MLyoHbbqibxqp0uHmi432XkiS/ftivtMyEqEqe3fQRqnIxW/8FmiPuh4KVx6I4WGjvQB PEyYvuaSGd5LmKKHtQ+Hgb2YEkYiuBwLUddgDmKSoQU6GZ3bOd8uCdToejvRsv3ZlK6N SBo5zFFn22IBo+PkxiiR7tmPR/ykcmvI1PpD+9X1Oq0KMzcE0dnfe4tvLsBO+dZsIyh6 NgD03zOacxgt3KR5L4uX5r1quo1TvW1dl7LjgCVlYxM09XxSUk0hzb3A7nPBBwGmPGRb nAtA== 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=m1loYoW2oUetw20mL24ntlr+RIYjd3r3UQ144d0uEqQ=; b=jt100BqtVT77TVvBZN+smDeq1VBj8fi2P14BV4i+37JnUZ32I0QTBqCtQV6BKAKdcj vA+XBDYlWKpE4LjtATqp7d9w0SeTLBi0/Y8e2sLH+uV8/tKtwK5lli41TWjWqDcOONiI 3bWWP1qx6F5grQImYDjbuL71yYTtO9QrLdhqwo/QIrtrMrPLTV+GahIU+3O50WkfNXJt VScb8bRMZvtuJssI5tOJppm/ou8bdJtfmen9NRLEgmJ5UubWkqSfoIcnLanp118KSnv+ JU+VMkmQw9KsLn2KoIRfPF6y7m38pvxNqpoxmJ6jnzbtQfwyuR3R00eOpWYJOhfokyBa yolA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=rovTU+A4; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s23si3240715eja.266.2021.03.11.21.21.34; Thu, 11 Mar 2021 21:21:56 -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=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=rovTU+A4; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229549AbhCLFCi (ORCPT + 99 others); Fri, 12 Mar 2021 00:02:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbhCLFCi (ORCPT ); Fri, 12 Mar 2021 00:02:38 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F37C3C061574 for ; Thu, 11 Mar 2021 21:02:37 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id 30so6801487ple.4 for ; Thu, 11 Mar 2021 21:02:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=m1loYoW2oUetw20mL24ntlr+RIYjd3r3UQ144d0uEqQ=; b=rovTU+A4fTJNpdqJKB/Tz583wGYLyFwPc9Y+0eOiSdygr05TqsbRkQdMkmhPaMvTMU 3V0br0mgm+aBXtbiSaxDW77c4He4QYBwAaxVChwqsR1CW11meCrayvhdlF8+kfQXyr5H 1BFtML5NqxKmeP9b20WzAqVoMJ3F4H2yBEU/UzjzBrZmtushAk25654eixm+jmf9ewfT oIhDtZYJv3fXd7A2Z9BsaGFEmjw9nhWk0lpCrll+LCQFrzp8mLxoIBtUzixpp+rvXwHF cY1lqKaS06x617hf/WhLeTh5jkQxC+RQEF7iimWEv5qo9HquCUBym/ANeyGa+W0HGn04 6xgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=m1loYoW2oUetw20mL24ntlr+RIYjd3r3UQ144d0uEqQ=; b=OOSpm713EmzmauuGHGw+0osRbOYW1OocXRtMIdAYQ/ntDJ9ly4qeO7EjpkQ1FdJmoG 4ck88QTChREaSvrmW9JAEW6IKU1u06CKxWPWXnq974hOPGwkBuM2ygeMor2NwXtqGkWQ Befhb0iT58HUWSPU1dlnysK0n6PMvF5ZSIcLY12YjdnVzo18+v25dWh02SpNQ7SUMWxO eWzN598TDtoH26/OAnCmk/ejjZoAhOYamvDq339iXVu+rF0O22tNm+qXN8xTXdNPpYk0 KIk+ozog2Tvb7CO9jKFyEHcrW1ww6lyTvKKiRTa2rZlv3PzOKIQ0hW1nyiQhr4sqTDJF 0s4g== X-Gm-Message-State: AOAM530j12sZ44fEixsvl0WqBpIm/P4d16Xdg7N6A3EIjAde8XhtcLD+ Ct6/BSj3qtqkHjcEo/ggloxve+P8hiSiQyGDqIlBeQ== X-Received: by 2002:a17:902:8d86:b029:e6:45a0:b16e with SMTP id v6-20020a1709028d86b02900e645a0b16emr11510146plo.34.1615525357475; Thu, 11 Mar 2021 21:02:37 -0800 (PST) MIME-Version: 1.0 References: <20210309100717.253-1-songmuchun@bytedance.com> <20210309100717.253-3-songmuchun@bytedance.com> In-Reply-To: From: Muchun Song Date: Fri, 12 Mar 2021 13:02:01 +0800 Message-ID: Subject: Re: [External] Re: [PATCH v3 2/4] mm: memcontrol: make page_memcg{_rcu} only applicable for non-kmem page To: Shakeel Butt Cc: Roman Gushchin , Johannes Weiner , Michal Hocko , Andrew Morton , Vladimir Davydov , LKML , Linux MM , Xiongchun duan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 12, 2021 at 11:22 AM Shakeel Butt wrote: > > On Tue, Mar 9, 2021 at 2:09 AM Muchun Song wrote: > > > > We want to reuse the obj_cgroup APIs to charge the kmem pages. > > If we do that, we should store an object cgroup pointer to > > page->memcg_data for the kmem pages. > > > > Finally, page->memcg_data can have 3 different meanings. > > replace 'can' with 'will' Will do. Thanks. > > Other than that I think Roman and Johannes have already given very > good feedback.