Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3198864pxv; Sun, 18 Jul 2021 14:34:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0wMOAU51S22bIhb3RqktlRlCuClwf345LIHl/dd4P2M7bGLoZSPARmGtyej1qrBXw6cGy X-Received: by 2002:a05:6402:cab:: with SMTP id cn11mr31403891edb.308.1626644045099; Sun, 18 Jul 2021 14:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626644045; cv=none; d=google.com; s=arc-20160816; b=PHq7HMi9TotjZS2DGHHlnkqhT13cyFczLMt6SvflzLS2+w1c+JiT7DZoLL4Oah8xid YT6kx6e6z7VRfcMMRu+3NJdukZrTvMo1ekftn0mbUVkz75JdL0IJjWMJ/J9MMCimS23+ 6BE25cGKcqqFVUUQq+vUhtS73whesSa7zcGZ7DW5eVQ/3RXjrr8VCjSXLz8dY48FMV0p 0wj8UnkVP5Y0QMenqNIvsav4+yZZz3/UNuuMh9l/J4Jf9QmucJq2lhRO6wzhi+1l064Q bbMV7f90NpGRBf+WnYWUdBU41+p+bn/RHFQG4vhl/4P7SpDbSmud6F3cM6cQI6CB9G7m qnjQ== 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=2+/+LhyG5jvyV2FwgkrvUngRXo+GiZNFji+6rwemUzs=; b=TebMtuMkDXQcTtfVmtMViNtj7OCsrM+WnfJJ4+R4rF8wXBH/d9YbesqDPu+gWzMzNU nrQ9Kbhhw2nkK3L9E5lIz30voeCZIA3yaJeANnO+TA8z/0llmoTA4l3Ua7Ra6/jTp1OE LtPg9/tssdm2XRkuzg5PmehwDfzFEnwp8F3tJpOWmbDABc3pan+LcL9BYNKFFrqt1rqb +4M/4SffA7MutJdA4j3oH6YhG6kuJ8vWuo+33fVhd0x6mRAR28A676CWQik2qlA4saoD 8+lrPv1c2eA74oDip1UDrOhRJNLCTcZL2GPbixMXc+4v1nTVKVL4gvoDyI7r88zTyxih dENw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=vedZyKz3; 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 y15si18262020edv.143.2021.07.18.14.33.42; Sun, 18 Jul 2021 14:34:05 -0700 (PDT) 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=vedZyKz3; 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 S233071AbhGRVfO (ORCPT + 99 others); Sun, 18 Jul 2021 17:35:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232898AbhGRVfN (ORCPT ); Sun, 18 Jul 2021 17:35:13 -0400 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E68BC061762 for ; Sun, 18 Jul 2021 14:32:14 -0700 (PDT) Received: by mail-yb1-xb29.google.com with SMTP id b13so24573187ybk.4 for ; Sun, 18 Jul 2021 14:32:14 -0700 (PDT) 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=2+/+LhyG5jvyV2FwgkrvUngRXo+GiZNFji+6rwemUzs=; b=vedZyKz3lL38LRdICKgLFxrEXvjXGc5BgkO2T78tkSNG8sI2Hlk33sbY4W5Y63syJE mURxKSpo24wSQ9o/ud5y4QDgt6SvMpf9VVsh6F507XJUpmQHNL0dW9oxTms5nlK0xUSc PuHLZCQNZUwHfduWT20rlRZOCXMBJrXKRIYo8Mb7fDiylsOGnIrE0HgtfxVul6uQd/rV 1LG0LAQ4sJ9oJ6jQ9RuzMIK2dpGVBQhO5zFqDDnpLK9olnfgkR0dUTgG7hbqRmoeiac5 zKoaJ6wS4qh1aAk9zJR/Tn2YTD8GhmJhjazXSfsyDxBgXeizJ4jqLkfMgQDSenGJ6lCg SJlQ== 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=2+/+LhyG5jvyV2FwgkrvUngRXo+GiZNFji+6rwemUzs=; b=XmaTbaVNKYIktUa7FreQi+SecnlKMa89oLvDv/q1AtnHUsZBArvKVaPY+Uzp2LLobm D2+D9WeplvOSXqFpvCPYVvyurW8T/1ZGCVGht7Khm9XxwJ7RBUNtNZy8p8T7vRByxBJk GH9RhbF9aQE6ku3MMN5A46MJan2Trvo9x+wIs7QZvtnGA8ZU+6Jlt5GGQPKPKeSKnlmr CL0QColg/8MxRm/iDH8WK7bz2IvqxoHLP0PgQ40l4P6LCwsEveNk6H7IILLz7817a9xR 3g0rOTh1M5w/TqNdus9QASi5Cchww4e1Vi/5gPHoLyKhgmtXooRstTYlr4BBNLMmOkhF 5HjA== X-Gm-Message-State: AOAM530C/gtcUYsKFzdjHhm60wHjXzVypRJpCyRrrv+rOeyOzuScf9I6 3BkLKmb+YxU/j8vKL0ASLY1Qo23h8CQWRZQec2oYmQ== X-Received: by 2002:a25:71c4:: with SMTP id m187mr26883038ybc.397.1626643933133; Sun, 18 Jul 2021 14:32:13 -0700 (PDT) MIME-Version: 1.0 References: <20210710003626.3549282-1-surenb@google.com> <20210710003626.3549282-2-surenb@google.com> In-Reply-To: From: Suren Baghdasaryan Date: Sun, 18 Jul 2021 14:32:02 -0700 Message-ID: Subject: Re: [PATCH v3 2/3] mm, memcg: inline mem_cgroup_{charge/uncharge} to improve disabled memcg config To: Matthew Wilcox Cc: Tejun Heo , Johannes Weiner , Michal Hocko , Vladimir Davydov , Andrew Morton , Shakeel Butt , Roman Gushchin , Muchun Song , Yang Shi , Alex Shi , Wei Yang , Vlastimil Babka , Jens Axboe , Joonsoo Kim , David Hildenbrand , apopple@nvidia.com, Minchan Kim , Miaohe Lin , LKML , cgroups mailinglist , linux-mm , kernel-team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 18, 2021 at 2:30 PM Matthew Wilcox wrote: > > On Sun, Jul 18, 2021 at 02:25:50PM -0700, Suren Baghdasaryan wrote: > > On Sun, Jul 18, 2021 at 9:56 AM Matthew Wilcox wrote: > > > > > > On Fri, Jul 09, 2021 at 05:36:25PM -0700, Suren Baghdasaryan wrote: > > > > @@ -6723,7 +6722,7 @@ static int __mem_cgroup_charge(struct page *page, struct mem_cgroup *memcg, > > > > } > > > > > > > > /** > > > > - * mem_cgroup_charge - charge a newly allocated page to a cgroup > > > > + * __mem_cgroup_charge - charge a newly allocated page to a cgroup > > > > * @page: page to charge > > > > * @mm: mm context of the victim > > > > * @gfp_mask: reclaim mode > > > > > > This patch conflicts with the folio work, so I'm just rebasing the > > > folio patches on top of this, and I think this part of the patch is a > > > mistake. We don't want to document the __mem_cgroup_charge() function. > > > That's an implementation detail. This patch should instead have moved the > > > kernel-doc to memcontrol.h and continued to document mem_cgroup_charge(). > > > > Ack. > > There was a v4 version of this patch: > > https://lore.kernel.org/patchwork/patch/1458907 which was picked up by > > Andrew already. If others agree that documentation should be moved > > into the header file then I'll gladly post another version. Or I can > > post a separate patch moving the documentation only. Whatever works > > best. Andrew, Michal, Johannes, WDYT? > > At this point, I've moved the documentation as part of the folio patch. > I'd rather not redo that patch again ... Ok. If you need me to redo anything please let me know.