From patchwork Mon Jul 5 16:23:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kara X-Patchwork-Id: 12359419 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,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 E9C65C07E9B for ; Mon, 5 Jul 2021 16:23:33 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 72925613D1 for ; Mon, 5 Jul 2021 16:23:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 72925613D1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E55476B0098; Mon, 5 Jul 2021 12:23:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DDBEB6B0089; Mon, 5 Jul 2021 12:23:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B454D6B0098; Mon, 5 Jul 2021 12:23:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0086.hostedemail.com [216.40.44.86]) by kanga.kvack.org (Postfix) with ESMTP id 7C1BE6B0089 for ; Mon, 5 Jul 2021 12:23:32 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 00E22180339D4 for ; Mon, 5 Jul 2021 16:23:32 +0000 (UTC) X-FDA: 78329054622.01.BA15D4F Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by imf08.hostedemail.com (Postfix) with ESMTP id 8002530000A0 for ; Mon, 5 Jul 2021 16:23:31 +0000 (UTC) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 89F591FEBC; Mon, 5 Jul 2021 16:23:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1625502208; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yv+4kF1EjnZ4ZkFyTsjZqCItVDiJyv1dyIx2QGj7x5A=; b=Jk+uZMZRyuO5E7XmUGr7nmAFa+HOJ2vclWY+0tu4zpn2/nsrVHtEHN0Qeas3qR6he0EHG+ iabXTkXR0u7IbOO6gqt0IicSg2H8Y8OvSwtkpbA9nkrtYjnVoEJunqHV89D6ICC4wjyVUI 4DgUjNLULekvub5isS6/HZ9iBJksSv8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1625502208; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yv+4kF1EjnZ4ZkFyTsjZqCItVDiJyv1dyIx2QGj7x5A=; b=yWKp67yLcI+A8Sd93PRE85SZhHaz49f3cw8jTQpMJGrYc0jjzDOzDm83IMNtLh7FS35Swd QbnQ21TU5Ud0r4BQ== Received: from quack2.suse.cz (unknown [10.163.43.118]) by relay2.suse.de (Postfix) with ESMTP id 6EF7DA3BA6; Mon, 5 Jul 2021 16:23:28 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 4B00D1F2CC9; Mon, 5 Jul 2021 18:23:28 +0200 (CEST) From: Jan Kara To: Andrew Morton Cc: , Michael Stapelberg , , Jan Kara Subject: [PATCH 4/5] writeback: Rename domain_update_bandwidth() Date: Mon, 5 Jul 2021 18:23:18 +0200 Message-Id: <20210705162328.28366-4-jack@suse.cz> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210705161610.19406-1-jack@suse.cz> References: <20210705161610.19406-1-jack@suse.cz> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1550; h=from:subject; bh=0nSUpWwlLNaV2zXsteeC9gDIgF5JqOxmX+5IXpCSxWI=; b=owEBbQGS/pANAwAIAZydqgc/ZEDZAcsmYgBg4zH2pgx1MM1pQm+exJQgkQO4+6tQ+oGbjgmG64Hw yrA+ioiJATMEAAEIAB0WIQSrWdEr1p4yirVVKBycnaoHP2RA2QUCYOMx9gAKCRCcnaoHP2RA2YktCA DEiA0n8tcFO9117fPR/3n+TwR7sGjnx37RTamWH3+UhLZ/KFneYWcFp+rETHWRYl0d+vMPvZRPkDhk VbFmMgKOB5jmg/7TmWKyIatgv3Cej8fuKQAPPydBD5JV0tR6bt2+uTS/TXJMOaWDroaWcKemVde9+w tBvmC+NaTFIeXmfBPv5Yhn8aJzUU8WT1WrppaYzCDgQfz8qKEJoO5vgCSib2HSCA5VPne1R/qn4WXn Sph6WrEy7XxUl1BOjh0nw+CToK8k8EKkmL+FIqv/LuvFOG+68vwzfVlXMU0FyKX9NZxcUj1nNKibxN nuP0KMfHEyGcspGeG6Yo04g+P3d9ww X-Developer-Key: i=jack@suse.cz; a=openpgp; fpr=93C6099A142276A28BBE35D815BC833443038D8C X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 8002530000A0 Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=Jk+uZMZR; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=yWKp67yL; spf=pass (imf08.hostedemail.com: domain of jack@suse.cz designates 195.135.220.29 as permitted sender) smtp.mailfrom=jack@suse.cz; dmarc=none X-Stat-Signature: oxcmm1h4yqqyjaq6c59eiftj3anuzzho X-HE-Tag: 1625502211-426958 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: Rename domain_update_bandwidth() to domain_update_dirty_limit(). The original name is a misnomer. The function has nothing to do with a bandwidth, it updates dirty limits. Signed-off-by: Jan Kara --- mm/page-writeback.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 6a99ddca95c0..95abae9eecaf 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -1153,8 +1153,8 @@ static void update_dirty_limit(struct dirty_throttle_control *dtc) dom->dirty_limit = limit; } -static void domain_update_bandwidth(struct dirty_throttle_control *dtc, - unsigned long now) +static void domain_update_dirty_limit(struct dirty_throttle_control *dtc, + unsigned long now) { struct wb_domain *dom = dtc_dom(dtc); @@ -1351,7 +1351,7 @@ static void __wb_update_bandwidth(struct dirty_throttle_control *gdtc, written = percpu_counter_read(&wb->stat[WB_WRITTEN]); if (update_ratelimit) { - domain_update_bandwidth(gdtc, now); + domain_update_dirty_limit(gdtc, now); wb_update_dirty_ratelimit(gdtc, dirtied, elapsed); /* @@ -1359,7 +1359,7 @@ static void __wb_update_bandwidth(struct dirty_throttle_control *gdtc, * compiler has no way to figure that out. Help it. */ if (IS_ENABLED(CONFIG_CGROUP_WRITEBACK) && mdtc) { - domain_update_bandwidth(mdtc, now); + domain_update_dirty_limit(mdtc, now); wb_update_dirty_ratelimit(mdtc, dirtied, elapsed); } }