Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp557235pxf; Wed, 17 Mar 2021 10:25:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6TgO0wqhJCXVVogQMffVhlTQ3Wb+yr7SocNBHj+vRLllL9XgagRlIBbSoElx9rNRfEj+3 X-Received: by 2002:a05:6402:38d:: with SMTP id o13mr42978718edv.337.1616001922204; Wed, 17 Mar 2021 10:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616001922; cv=none; d=google.com; s=arc-20160816; b=S1VTCpiGpaWEqNcy7BxGwr6dL2K11HaiTnWbYuO6iO6GLcRBHoAsK6LN+yb7S4H2gN Fjgg7Udohd4ssDeA1lNuDyDOW/2uaKJRrSbcPq4Ayg8L6ouUd2bRC1MD4b/l10OlnoLb b7RsRVoYtS0EH4EfEfNouC1LBGBVZb8WHCXUNIbscNrRSU7To1B+eYggmj44QZ50fgS9 M0sQvaGRxiKvVTDkHba8mszwO/FlGQIptQdq9aJOi84aYmSDuAbwEPE3wxo+k57IEwuc 3ppKZl0Rnm40iEuxN4hoJj6dSAOnqSDZRHGjVDo5EIBoLjCAQBVtuTz2HH4XLYEsW+Lk pDUw== 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=Qo/0CZaBM3vkvFlSWE2vylgaMs07ND+ounCESWbPsMM=; b=poLauXuydjzr2cGn7fvrKVh6d1SH4/xINpLr0OiH56t2jatTmFvYeN7cCsFwGWBYDe FaNzAHgIFPIUkKpBWETbKKTeojjQPzZLwXiGfjlMLTyb5GlQ93b5aPm82ZFAwlSdCDKH IeXL+/UQBOYBsgOvwTntrFi9I8usbrjiPMzKDw+Fb/6QPr41iGJPH6nxnh0OYh7Agpc9 XD+p6oXiv96XVTHqx5XMuKy7bWZeQHV8bW0o/vx9CfYPq8wUeKXMLJhale36JkszKFvn qD66n0otDXP66ivzzBHd8AVUiNxaH9vtL61Gw8Ur1jxY7njP6gOavJbdkKw7pM7c0AKV 9tmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WGk9Jgcw; 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 dg2si16094674edb.136.2021.03.17.10.24.59; Wed, 17 Mar 2021 10:25:22 -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=WGk9Jgcw; 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 S231233AbhCQRRA (ORCPT + 99 others); Wed, 17 Mar 2021 13:17:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230221AbhCQRQw (ORCPT ); Wed, 17 Mar 2021 13:16:52 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42B1CC06174A; Wed, 17 Mar 2021 10:16:52 -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=Qo/0CZaBM3vkvFlSWE2vylgaMs07ND+ounCESWbPsMM=; b=WGk9Jgcw3Hce04yEcMePRI9NYv ygnDik4lNoZ362rDXAs3XCruJZIJMC5E45P7lWB7mm3n79CTiokm2MF2xPseygKgvhuDO+jtm0Sf2 qHcUt8pXP1retMuf+tuRpBDPi3MY1kqrWzVn/7iQzWdQ0e8r0StY4PQEU6Bay09obpcMwAM0BHUFZ 2ZljVb1X7T1I8EtltRiL6uvm80lOa5Eh/sTXU3bjImvVc/JFHG/YCq2JV5B5VUsrUQFhwT5Svp6BT FS2XmN1eqTOvJkZpLapn8DX+3Bsc2gqlqGdCYwNiUHC6LEqUi2O3xJCikZN9ROF0HDVeyCjGqPMJg hHC0WYhg==; Received: from [2001:4bb8:18c:bb3:e3eb:4a4b:ba2f:224b] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lMZmn-001tuO-KJ; Wed, 17 Mar 2021 17:16:47 +0000 Date: Wed, 17 Mar 2021 18:16:44 +0100 From: Christoph Hellwig To: "Matthew Wilcox (Oracle)" Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v4 03/25] mm/vmstat: Add functions to account folio statistics Message-ID: References: <20210305041901.2396498-1-willy@infradead.org> <20210305041901.2396498-4-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210305041901.2396498-4-willy@infradead.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +static inline > +void __inc_zone_folio_stat(struct folio *folio, enum zone_stat_item item) This prototype style is weird and doesn't follow either of the preffered styles.. > static inline void __mod_zone_freepage_state(struct zone *zone, int nr_pages, > int migratetype) > { > @@ -536,6 +584,24 @@ static inline void __dec_lruvec_page_state(struct page *page, > __mod_lruvec_page_state(page, idx, -1); > } > > +static inline void __mod_lruvec_folio_stat(struct folio *folio, > + enum node_stat_item idx, int val) .. like the ones that exist and are added by you just below.