Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3197669pxv; Sun, 18 Jul 2021 14:31:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdcTV56JZVLgVUgZ01qjwwZH4LHbc4N+zoqqaK/knjb9XgWcNojkvDpzdW/ciMd3bK3mXc X-Received: by 2002:a5d:914a:: with SMTP id y10mr16523772ioq.140.1626643918762; Sun, 18 Jul 2021 14:31:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626643918; cv=none; d=google.com; s=arc-20160816; b=Y2G+2X71yY8QeYpRv3GP1fpAY12JDGUX0PQNHj/caEKesu9mrPYTVrmfJ0yDOsO03f BA48LP5R3DdrnaXqPHdY2H2mcyIxyEqzV2QLCt2YpfLaYUhNb2NiwUPRt8ABg7W99wva HZnVWYw5joetdoUTxAHNex0aXupsSFeWzBeamdNlxPYVCo+fMDkhK9XU8cmEY5phGhcG gjiWmajJdMr+bVlxD8MDRCfBtPVoCBOtHegllrR+MqsZnDxmtsNu+KgT5203cjLGtuwb mnPtmAmkk9N5BRAR7eBvhFV5AjV9YqedcMUssgaWllHn3IkjIyw2s3KOwOfSUVgAVLF6 G0yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=saEY/4vR5oVUgdhiPTwdJ9ZlWWuuc9HoXDEQmM/u3RI=; b=WksgUmSgKbzdGUinOh/q/xEIj2dHJ6yw4T1hqvbCQe0HW6vDMQCfj2HYu7mL+ww5GB 4W09J2x6C8U4tEav9yJn3gUwgwZMbfvspMT8E7cl87TKoEq8C86ELE5vjBjiljT2kXoH 4zG9fRS1vv2Yp+j5KSjUhG0vc493k9mAYKFFYwYVkHj7BWNNKwGZzYCv/CqzLZvbpFvj noHqtgjIGEmUYc+qgZ72vxnH2p5w02XmpRm3mxNWrhLefDKGBAtuM9fWMZ6fbUhX/cSf 0X8yFcLPpuo5v0lKhsHxPAJZhcLnlBitiWcosmTHKcqvUJXauemTRtdc3m2zLVZuF/19 AEdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=SpOFLg8Z; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r18si18096327ile.92.2021.07.18.14.31.46; Sun, 18 Jul 2021 14:31:58 -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=@infradead.org header.s=casper.20170209 header.b=SpOFLg8Z; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233122AbhGRVeE (ORCPT + 99 others); Sun, 18 Jul 2021 17:34:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232459AbhGRVeD (ORCPT ); Sun, 18 Jul 2021 17:34:03 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10E16C061762; Sun, 18 Jul 2021 14:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=saEY/4vR5oVUgdhiPTwdJ9ZlWWuuc9HoXDEQmM/u3RI=; b=SpOFLg8Z3oudwQfDI8th2AcBRG cyxA4iKcmxJ4ZhLHx411qiILoxlaYfk57jk//4rQpDLbsRJ9JPv5UoWg+zL6atAPMUqIBZabwFNmo ixzlJ2aHsas4CUgAsPCm5ayH6KsAMDXL8PocJ+/BIsCkTrm9G4R2oVWuYo94moamUne87giTl6CbN UMVqq7/npPjhOf5WR3mW2KBO7dBwtfV8OmUKM3N7eut0euO5Q/dikDmpDdvB8V2Fkq2bSb8aJI5jr wQWz0NkNqRcmSJeZ9BWfq6Sk3ctONHj7jPLFcVstZhavfaX4BFaQMw3Yf5dkpECzyQCfrECPJ1GOl Q4s06rwA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m5ELo-006JBR-EE; Sun, 18 Jul 2021 21:29:37 +0000 Date: Sun, 18 Jul 2021 22:29:28 +0100 From: Matthew Wilcox To: Suren Baghdasaryan 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 Subject: Re: [PATCH v3 2/3] mm, memcg: inline mem_cgroup_{charge/uncharge} to improve disabled memcg config Message-ID: References: <20210710003626.3549282-1-surenb@google.com> <20210710003626.3549282-2-surenb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ...