Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp1253953pxb; Fri, 13 Aug 2021 18:33:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxROSUBFvSLSP2mlM58crZ8OV/qUr9a9nho7olUVQJg1B5t+TlUd7DhzCqS+daOzo6h/yZP X-Received: by 2002:a5d:9d8b:: with SMTP id ay11mr4126889iob.165.1628904831607; Fri, 13 Aug 2021 18:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628904831; cv=none; d=google.com; s=arc-20160816; b=uUsdlHNUqNbQ17AsDVV/Al01t9TeLywIgY06LOtokXahzm5CThfjzZrHiX18vBoUGd jjfic2vvb88VPytirvKJcD7KCFpSCfHQwQqGUW9VRb2DOlSXk3jAx1G19W9ifiD4Tw9Y pmgt7LYSp3E+XFL2llqFsLdtsfSEJkq++3cwT8hGCKazIJkom92BAwRsKDo5HPtL/yKJ voJGBabWiodNX++Fy2+IkkI9z6I0JnlHIkHVQqN7F4G/SC5FZykYPXsBFTLqccARGnlG MaxYiWVzP3BlUxBdsMC+4nybg0UiGM1ydfLIRCXg9M2SpcyFh1619g4yYUtxMXd4qGOR zimg== 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=DlSiQx83vgdiLHCuuw2OL8L/ZHJP2UPE/zBYzlozq/s=; b=hScNshM5lfOD2x3C9XNT/z0IXgh0tv6Hvqo1zaXGvmSupQl+WCXn50dl+YRtI7OGAu 4y24H4x/PWqHwuU+FEfV2m1BQJe8scEmqNhDf8gMjpatu7L50/x+EGBinGUS5CsJIaID qxXNywm7I3yI3OtE5D+um4xj7YrlOdN0BRCmmayymisFpTjf8ycTzcllqKkucg7vvKtn Ev2jylE3HNpgCPMDQJvUN6519t57HtSZWME2BT6TS8/7NDEFbBZ/bMM379nXm1Xdaene edIxzDYf++77VP3WN/uItZfnUXjD5x7x/s+10bE8b/YDbq+FXktr+IDiWKxkdsMfPjtE Pu4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Udps3o26; 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 s14si3265293jar.33.2021.08.13.18.33.25; Fri, 13 Aug 2021 18:33:51 -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=Udps3o26; 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 S236264AbhHNBbL (ORCPT + 99 others); Fri, 13 Aug 2021 21:31:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236128AbhHNBbK (ORCPT ); Fri, 13 Aug 2021 21:31:10 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F318C061756; Fri, 13 Aug 2021 18:30:43 -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=DlSiQx83vgdiLHCuuw2OL8L/ZHJP2UPE/zBYzlozq/s=; b=Udps3o26/7YSjW58cgj+sExubl P2jsk0yy7OuvRUPQWCfx7QCTikWBZRb7EgF9dYXKbnSpv3Ah1xHKu4gewliPQllPOgqpFD7MUUNNU e9KAP5GUA84pzzhcmJASpbH+b54m136lpu1OfF5aFqRNzS/YHxqPhINktc+zxm2szUa6vQiVu2b3U kLRICt/2VS5yt+Czs3YG0UAif//eVfDyFfuTsv82xMYtC0FPeeuZDTireBKYSOUHaXTkyaS79ccgW zQMcwowtNIUIqoPqVtd7X4uSZ9xcHKiiTumRbCLaLP7jD3sCMZq2Poeo3DiAeuavbbGpRqa3W/C16 n5hKO50A==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mEiUt-00GGmO-9w; Sat, 14 Aug 2021 01:30:15 +0000 Date: Sat, 14 Aug 2021 02:30:03 +0100 From: Matthew Wilcox To: Vlastimil Babka Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , Michal Hocko , Johannes Weiner , Vladimir Davydov Subject: Re: [PATCH v14 040/138] mm/memcg: Convert mem_cgroup_charge() to take a folio Message-ID: References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-41-willy@infradead.org> <40a868bf-61dc-1832-4799-ff85018ebcec@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40a868bf-61dc-1832-4799-ff85018ebcec@suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 11, 2021 at 12:54:05PM +0200, Vlastimil Babka wrote: > > -static int __mem_cgroup_charge(struct page *page, struct mem_cgroup *memcg, > > +static int __mem_cgroup_charge(struct folio *folio, struct mem_cgroup *memcg, > > gfp_t gfp) > > The git/next version also renames this function to charge_memcg(), why? The new > name doesn't look that internal as the old one. I don't have a strong opinion > but CCing memcg maintainers who might. Ah, this is Suren's fault :-) https://lore.kernel.org/linux-mm/20210710003626.3549282-2-surenb@google.com/ Renaming it here makes the merge resolution cleaner.