Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp928298pxf; Thu, 11 Mar 2021 19:54:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhNlTUx92R5fY7/N2fqN9bvP7ZQ0GrWA9GwzirvQEyMuEb0Y8ykKBS6qsSNjxDBxsVIUCw X-Received: by 2002:a17:906:cf90:: with SMTP id um16mr6374529ejb.389.1615521259935; Thu, 11 Mar 2021 19:54:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615521259; cv=none; d=google.com; s=arc-20160816; b=tEicQWx7BjhcKltrUPg9cMuomw0D1dPJhv5dkW2CxjkFhScVwN2Lp7VYm+7kXU4rgZ a/YhVEkoZPzd3647M2HeE+OZLiBy8atBM8yVvudHVuR2Od8md8HjVZbYeBDN3Fk17zOx lc0qu90BbTqjgtCAtIJyo0wMdnasCfGNToMmEnrIs5zntlqe1LeIhDGavMspgq/IwODs uHXZkoMWQZgfyG48ZBJ/0LJ8VYoRN8quZO2FAL0dVI7PTv3caZh9aAZzp6nXhgvjVA5x EEBB2Wg0p4UpLJgpXEs+UcI7vMNvH1PuQhlTQvd5fzuaYdY70QePZxEC+ySiVxY+2KTz MIUw== 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=eCIc7dqSdtfRcjLpMj51xq06Wi2OTwxYLeouzZdu4ls=; b=mogsSLofj4BYBw5LoCP3HPd7mpu2ngEVT848nH8ilNEKc0j2Slz7I76pYGwA1mEtqg vEk2ORDXtsEcHzG4kpHlSoX//LGyr8tuyKRxSi14cH8rDBTGwg6Ld2Vjc20J3JitMV4I 3zwr0faS9XhSGW8yM1/yShRTwxJMN5yO8rWliwWFoHd5f5U/KVZ6Vuf3aY9cTpVrABJ9 MOTgmWK107T+x5MziKD7TYf4DiufGPjhp4u/DxAYLMPhT+Mggoij/PSJ348zn38hXMlR Mc7+AY4NowhYk6r2pAhU8acG7KokJvrwWnN0OECLV0ImUYUwponoMMu0QSxqZlT3dcOY 2FRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=MM4wfvAr; 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 v4si3319741ejx.329.2021.03.11.19.53.55; Thu, 11 Mar 2021 19:54:19 -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=20161025 header.b=MM4wfvAr; 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 S231730AbhCLDWy (ORCPT + 99 others); Thu, 11 Mar 2021 22:22:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbhCLDWe (ORCPT ); Thu, 11 Mar 2021 22:22:34 -0500 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ED1DC061574 for ; Thu, 11 Mar 2021 19:22:34 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id r20so4932048ljk.4 for ; Thu, 11 Mar 2021 19:22:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eCIc7dqSdtfRcjLpMj51xq06Wi2OTwxYLeouzZdu4ls=; b=MM4wfvArNdN73GuoyTklV4maIs6VrkD57zcs6ThfaiZRuCZTdKDAM6L/uP+vzRIoic iDmPSZBen/4rN/eaM99rFXvx1b5Qzty24xAHWN4u2nIqOg/A+lmVP6jpChXsPblRClwq mYXzV9aTFX6je8azdoDViZamEkhOVRtYOpTuSy4OEKfL516Wd+SJO9lgx+6otmTcyy4U q56OaSRiiu4wOaSdJYCyAZ+25LdB4tmTy79q829cFqkDEqrz6cieaz/XuZ5qbM1eOliA R+j/AW954iXCyz5LJ2iF2X8bSr2EBCRaUFXOSHPua0Ek6lL3vvwu2Hw6MPIjsGwSuaGz AcLg== 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=eCIc7dqSdtfRcjLpMj51xq06Wi2OTwxYLeouzZdu4ls=; b=GNI4M7OyZSQ5lBfusdpr7cmJM0KtIjf+d6qjUUn8uKMr8Kc8T+fGwbQsDUuWwWVdv5 OG4qrXxCmC48TzNpsloXdszGahhgo/9/MAi+dTqwjGPIkAjF7sZTckBusY7pdZ1VYYfq HeBUrSwWpwHMy8WFO5j6gVFcHsdhe5Fb5qXYss/+K0iQj8kIlc8YOTBk0B6J68sk4Tab DFeTB2yJsnxbjvRdkIoGHc+cOBsWhytDpkFwYC7GMyl5oC2jUWCgSMJs6zRIKqB6yHoa 8VQcE0zsA50WOIGbtJp/RDiXj+LfT4txOJOW1lDns9NzXR0cMzwIEEpAZoI+gUNR8BI4 wkZQ== X-Gm-Message-State: AOAM533QAqeiJrtrYm7k7UpqRX8w7q5ccXS1OqfhxPrrYtmPbk/PVD81 NNAQWjXZljJpSC09/0DfSLov8kmgaHr1dwLFexMyHw== X-Received: by 2002:a2e:5c02:: with SMTP id q2mr1120647ljb.81.1615519352363; Thu, 11 Mar 2021 19:22:32 -0800 (PST) MIME-Version: 1.0 References: <20210309100717.253-1-songmuchun@bytedance.com> <20210309100717.253-3-songmuchun@bytedance.com> In-Reply-To: <20210309100717.253-3-songmuchun@bytedance.com> From: Shakeel Butt Date: Thu, 11 Mar 2021 19:22:20 -0800 Message-ID: Subject: Re: [PATCH v3 2/4] mm: memcontrol: make page_memcg{_rcu} only applicable for non-kmem page To: Muchun Song 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 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' Other than that I think Roman and Johannes have already given very good feedback.