From patchwork Mon Mar 22 20:11:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 12156041 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9956C433C1 for ; Mon, 22 Mar 2021 20:13:41 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 47A9D6196C for ; Mon, 22 Mar 2021 20:13:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 47A9D6196C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id DE13A6B00FC; Mon, 22 Mar 2021 16:13:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DC9E06B00FE; Mon, 22 Mar 2021 16:13:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C31E36B00FF; Mon, 22 Mar 2021 16:13:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0229.hostedemail.com [216.40.44.229]) by kanga.kvack.org (Postfix) with ESMTP id A191F6B00FC for ; Mon, 22 Mar 2021 16:13:40 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 521B518017502 for ; Mon, 22 Mar 2021 20:13:40 +0000 (UTC) X-FDA: 77948610600.15.7E9032E Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf15.hostedemail.com (Postfix) with ESMTP id 8989CA0049EF for ; Mon, 22 Mar 2021 20:13:37 +0000 (UTC) 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=3pnIGezyLg2uitqRe0DCTnJwktJCWKNOvWRkQFvpOYk=; b=lIRccUt09mjOwCWvL0s/xAynZP ZouANCV4vA2uVBfSf7mU3Du5C7jpVFvFvvTlXrYVtAijD4AB/R1I0mjG5XiH2pme3Mfv2v3jrj/dw d+QsIQsf6RadwFxCEpibxyYRlDptqdOZ+uGqvbqZegnfcx/LKXaL5uzHhEf7/6IJ2bUaaDyvKs8R4 IoA/rSVwDc1gK8O9Y1X15uWXk3gdBFaI7de5wrvnqH94j2M+xQWc0d00OLyi68zAE03XWLv37/AMy iC7Ja5N1HF17JcKYr8dLtyF641JziQPzU0CTu+Nz15mcL5QiwB00bStgDPsonnSrGHxKWt7bzH8Mk J8jX3F/g==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lOQu7-0091DX-M5; Mon, 22 Mar 2021 20:12:10 +0000 From: "Matthew Wilcox (Oracle)" To: Jan Kara Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, Johannes Weiner Subject: [PATCH 1/3] mm/writeback: Rename __add_wb_stat to wb_stat_mod Date: Mon, 22 Mar 2021 20:11:14 +0000 Message-Id: <20210322201116.2149432-2-willy@infradead.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210322201116.2149432-1-willy@infradead.org> References: <20210322201116.2149432-1-willy@infradead.org> MIME-Version: 1.0 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 8989CA0049EF X-Stat-Signature: g3f6ek7yc9yj5ueyew1mmaj85zkgqq7d Received-SPF: none (infradead.org>: No applicable sender policy available) receiver=imf15; identity=mailfrom; envelope-from=""; helo=casper.infradead.org; client-ip=90.155.50.34 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1616444017-398940 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Make this look like the newly renamed vmstat functions. Signed-off-by: Matthew Wilcox (Oracle) --- 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)