Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp104491pxv; Wed, 14 Jul 2021 23:53:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFp/g2dBVPloId2JLLQJDUCAPssgSe5gQo3OKZH+coa7SKpqEwJz/PyHdo7shSpRNHxwjI X-Received: by 2002:a17:907:d8f:: with SMTP id go15mr3616826ejc.30.1626332027353; Wed, 14 Jul 2021 23:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626332027; cv=none; d=google.com; s=arc-20160816; b=nSk4/RFV/ndwUeqRbRqx1fCJm420yct3OeaYHGFJwed5yWaBNMJt07jf8g8Z6hnoJe hgCuijAuE+fsThxU7FGRpu4B6pGTNDiZ8D50gGHwfJHGOR87Tvv2y16BNvvcsA21zvfV mha/t67aRGjKkBR+Mgy1moKR4x/6ze/QPeRLFHgHnK6GmMtW3kAmpKKQKGW5hS0aUgF/ jCa95PWJVse8aEmgI0wdohB6adZ6QNQjArknCAHUsuxE7xiCybu+ocWxBI61h4MQXbF4 7AuEG2lwCMxKMxwYUJYq/3BycG5ja+sK2cfCj5tUn7t0sDTs7CXoQtvQ6hWBZapEYX6C SSKQ== 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=YVQAS1vO4uSs/qmxE9srUFbt7VRxp+dS6/4dbrOb46XlCpRJwgcqEzPdBgum6g98xx BnmTtSdyZir6pVoI4HHVZlUYq/fEI/XkgEhsQNXk3ggGbWm5JozhkUNfIqMYiHBXVjM3 lsQWagwff50NxrVwPclPYu56ofEAvMswpf20OTlnQcSvLA/WUdTzz4KO70Prg31t1RQo 7eJflXlvJFvWweNk7Hd2mkZAJlfx2aAKbeVvTN59JcpmVw3YBP47rlZ0Je5w37lNXVA/ 6xgTKJ1DGz3tgxiZgwMienTzBEq12mBcyaMLCvUZeJKsRPIrO47d3/DAh9tcIiw2Lopz PMBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=BRULnDI2; 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 bx22si6307865edb.157.2021.07.14.23.53.25; Wed, 14 Jul 2021 23:53:47 -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=BRULnDI2; 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 S236672AbhGOEbx (ORCPT + 99 others); Thu, 15 Jul 2021 00:31:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231979AbhGOEbx (ORCPT ); Thu, 15 Jul 2021 00:31:53 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BADD2C06175F; Wed, 14 Jul 2021 21:29:00 -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=BRULnDI2ti7j2ouCrbmnXR9nWY 9gPVfLu3UWHehgsGF3J9UnNXRovwPaxQarXu+iBmAsm0r2yaXynXymy8ewSpVtkmUOwqu/UHG655E mW01YzvYR7MlfRxK5AKJS2rtXww0MLP8/5ScO7Lpas5JY/m8VA8intlNA7b63mCsnxfcR81mRlBvw cCmHNnhZwSKCmycowBsypr72PFe77ukWoqnCHst3xaIXNUKtbQ3k1kjwxmSN5Pi9BQxALvnTumkGV QZ1icbsUQJOoRHWfs50N2xSJSNM0/YTkPdG63EDNfAg22HgBMfBgg/MuJgXtiFqY4v8uVb2QuWerz woObk+PQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3sxq-002xM8-Tm; Thu, 15 Jul 2021 04:27:27 +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 v14 063/138] mm/writeback: Rename __add_wb_stat() to wb_stat_mod() Date: Thu, 15 Jul 2021 04:35:49 +0100 Message-Id: <20210715033704.692967-64-willy@infradead.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210715033704.692967-1-willy@infradead.org> References: <20210715033704.692967-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