Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2629769pxv; Sun, 11 Jul 2021 20:43:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7kr5i9eOuzi9HRvuFO3BBULx4KxmzjB9cg++R2vNnk9uK2AmBwpUGMkpcXSvHqymCodmQ X-Received: by 2002:a17:906:3a19:: with SMTP id z25mr206295eje.536.1626061435230; Sun, 11 Jul 2021 20:43:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626061435; cv=none; d=google.com; s=arc-20160816; b=hRSvXG9Qro4gw5+L76YZ7ejC1E4rQcxjpUXqIm2yMmFlhY2Ro99Tboz/5cGXUS8uNY p1U+ZifIJ3aNPckWcuenq6P3VmtbXzI7Ps0jn2STwQV64V7xlNO/vGbO4jD4kEJOFUZR xLmmGUW67+IeiIfxMuwS1C1vn2VnJ7mor0Dycbz3P/+wJebiOAeynqG70czSVhKqZ++k Dq3yvQ9AE8EweJ9HLeE+W7D9U5++T14bteFt01sfIjEzDTyT/fJppl4eqZiarctjOIgi 34yrHv+SukGbZhOI3w7t6FjZagSwExU7TrxEdCVlb1aB2e87BPBL5zMg/JQzRhOHxPJQ WGFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HkzEL+P4RoA9lEpGuWVdgdutSkoMwcFoNSDxLURGf2I=; b=ZR7scElwpZWxDVBnKCJL3cphHXcScGI3+nF3fIA2CI6yIn2Sr0Vxx6wtlEQlUMLmAq 02+ry+xwoAeqrKxkYxo/CdFO8BfQn6bTdH2ig8fnDRT+H60BNoBs/WuA9zgEVpttCxIn vV4KWlzemIHw+enx+bW2Jk1ELIZ9a+NT++O5A/C4CF5D6xqEOjo7/0yjpXu16as/qj8/ j1H9e+iP21cs5QXC3LbYUZDLVva0NHTWNcbtpEJIT9/QD2NqdOMa4rItEQr3iVPNj5Su KJ3ltb/q7LXmS8Mp2oLCqmi3yk3Qlygb0GVdisqreI0r307dhfhBmrRwySvWNHD/Mp1s nMkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=YKIDigoO; 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 4si16606836ejm.546.2021.07.11.20.43.32; Sun, 11 Jul 2021 20:43:55 -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=YKIDigoO; 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 S233013AbhGLDoc (ORCPT + 99 others); Sun, 11 Jul 2021 23:44:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232643AbhGLDob (ORCPT ); Sun, 11 Jul 2021 23:44:31 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFF81C0613DD; Sun, 11 Jul 2021 20:41:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=HkzEL+P4RoA9lEpGuWVdgdutSkoMwcFoNSDxLURGf2I=; b=YKIDigoO3f2pXxWVejNSSJ+zru ry2ahXbCU7wlTZOduGP75YkxRmJl+YgbfjlghJ3+wDoq33hga9q0GpasBF8zIC4vFGsa1Tty4Qbdg h4Je2Mz2ccAhT05Qw1UjxEcJlUblMHsFYZGu/sYp0ZSdJcZw+GkHoY+Og5FkgerswWw94pkv+1VgT WPkD2y82sdlyyKKufwa0bWP6HNExXaNy2a1BmRG5TqHb5xsJFLfqBRayCOk878RDuzPoPS+FUPD3f laVcy2+fmr13lpp7eXqxx/WyHUxnM3OEXgyA+h7lKQ/bd1PD7hwNX6wkNziAGxl0b/gZU2aPCtO7X KPExCg5Q==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m2moF-00Gp8l-N1; Mon, 12 Jul 2021 03:40:50 +0000 From: "Matthew Wilcox (Oracle)" To: linux-kernel@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig Subject: [PATCH v13 063/137] mm/writeback: Rename __add_wb_stat() to wb_stat_mod() Date: Mon, 12 Jul 2021 04:05:47 +0100 Message-Id: <20210712030701.4000097-64-willy@infradead.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210712030701.4000097-1-willy@infradead.org> References: <20210712030701.4000097-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make this look like the newly renamed vmstat functions. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Christoph Hellwig --- include/linux/backing-dev.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h index 44df4fcef65c..a852876bb6e2 100644 --- a/include/linux/backing-dev.h +++ b/include/linux/backing-dev.h @@ -64,7 +64,7 @@ static inline bool bdi_has_dirty_io(struct backing_dev_info *bdi) return atomic_long_read(&bdi->tot_write_bandwidth); } -static inline void __add_wb_stat(struct bdi_writeback *wb, +static inline void wb_stat_mod(struct bdi_writeback *wb, enum wb_stat_item item, s64 amount) { percpu_counter_add_batch(&wb->stat[item], amount, WB_STAT_BATCH); @@ -72,12 +72,12 @@ static inline void __add_wb_stat(struct bdi_writeback *wb, static inline void inc_wb_stat(struct bdi_writeback *wb, enum wb_stat_item item) { - __add_wb_stat(wb, item, 1); + wb_stat_mod(wb, item, 1); } static inline void dec_wb_stat(struct bdi_writeback *wb, enum wb_stat_item item) { - __add_wb_stat(wb, item, -1); + wb_stat_mod(wb, item, -1); } static inline s64 wb_stat(struct bdi_writeback *wb, enum wb_stat_item item) -- 2.30.2