Message ID | 20240123183332.876854-4-shikemeng@huaweicloud.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95AAEC47258 for <linux-mm@archiver.kernel.org>; Tue, 23 Jan 2024 10:36:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E5DA26B0089; Tue, 23 Jan 2024 05:36:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E34ED6B0081; Tue, 23 Jan 2024 05:36:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BC3736B0083; Tue, 23 Jan 2024 05:36:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id ABD146B0080 for <linux-mm@kvack.org>; Tue, 23 Jan 2024 05:36:02 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 7B6541407D1 for <linux-mm@kvack.org>; Tue, 23 Jan 2024 10:36:02 +0000 (UTC) X-FDA: 81710220564.06.CCA4C3A Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by imf18.hostedemail.com (Postfix) with ESMTP id ED2611C0013 for <linux-mm@kvack.org>; Tue, 23 Jan 2024 10:35:56 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf18.hostedemail.com: domain of shikemeng@huaweicloud.com designates 45.249.212.51 as permitted sender) smtp.mailfrom=shikemeng@huaweicloud.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706006160; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cEG0RoDb3wTJRvQKXPlpyVHF9bSRT5RhaXKzQzxW8Ck=; b=kOIBdkadl34p1L+un8pDXaNHHlBsnj/2+tt9ik/fRIAojTzTXuSUDojw/T+UwUPKAuUj7S CvRRKEwLv0NVFf6Sa0ECEZ4Vwu9jRUIe0sScsD2koKItJXlSQt8+KoLyy57r3pviu4ugED fBkwSq+3EXyCH95/alj9yEC4VrO4zws= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf18.hostedemail.com: domain of shikemeng@huaweicloud.com designates 45.249.212.51 as permitted sender) smtp.mailfrom=shikemeng@huaweicloud.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706006160; a=rsa-sha256; cv=none; b=ggI8mzPWais/pTa6LqUFkHukMhMpFGevyTe39caZUSp0hQroBUv8tvyqJo9QGHbSHg6A64 pJasnC1kpDbpPbqjPHc77dqCmnw//ec2U8/u22f3q8psTX1ssg7TNCkFdhvCfYQ6fwLRZ5 efEXqmuFTzkQapnR2kSWDQtPbGy+9qM= Received: from mail.maildlp.com (unknown [172.19.163.216]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4TK3QY6d6Sz4f3k6Y for <linux-mm@kvack.org>; Tue, 23 Jan 2024 18:35:49 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id 43BF01A038B for <linux-mm@kvack.org>; Tue, 23 Jan 2024 18:35:52 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP1 (Coremail) with SMTP id cCh0CgA3Bg+Flq9ly6DjBg--.30161S5; Tue, 23 Jan 2024 18:35:52 +0800 (CST) From: Kemeng Shi <shikemeng@huaweicloud.com> To: willy@infradead.org, akpm@linux-foundation.org Cc: tj@kernel.org, hcochran@kernelspring.com, mszeredi@redhat.com, axboe@kernel.dk, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] mm: call __wb_calc_thresh instead of wb_calc_thresh in wb_over_bg_thresh Date: Wed, 24 Jan 2024 02:33:30 +0800 Message-Id: <20240123183332.876854-4-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20240123183332.876854-1-shikemeng@huaweicloud.com> References: <20240123183332.876854-1-shikemeng@huaweicloud.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: cCh0CgA3Bg+Flq9ly6DjBg--.30161S5 X-Coremail-Antispam: 1UD129KBjvdXoWrtw4fGFykGFy7WFyfKryxuFg_yoW3JrXEg3 W8trnrGrW3JFyUGa4xCas3Gr1jkrWkuF1rZa1rGFy7JFy0vrykXFy0kw4kZr9FvFyj93sI krySqr4YqanrWjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbfxYFVCjjxCrM7AC8VAFwI0_Wr0E3s1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l87I20VAvwVAaII0Ic2I_JFv_Gryl82 xGYIkIc2x26280x7IE14v26r1rM28IrcIa0xkI8VCY1x0267AKxVW5JVCq3wA2ocxC64kI II0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26F1j6w1UM28EF7 xvwVC0I7IYx2IY6xkF7I0E14v26r4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2 z4x0Y4vEx4A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4 xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v2 6r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwI xGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480 Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7 IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k2 6cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxV AFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07js0edUUUUU= X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: ED2611C0013 X-Stat-Signature: ybud7eox5zo4kfbgdwrfuyuiqfzbkrpc X-HE-Tag: 1706006156-417811 X-HE-Meta: U2FsdGVkX1+FV3Qsn7XZwOOo/4PF0Ynq8zYB1ZfZRoNNBkjzuqtQME1J0H84ROFk/23COYxMiLpmd8Uyn06qal2pkuSp1+7IkJ6qvBOKdXAnBwPkynCnX8aRnmk1jbEZ2UibDXG7eDwlTmvrv6yu1RbKHR1VQCqUu/TZX7qq865MoO2IlIz2g6Ye4sKv2KKvLaciYh6ddaK7/kPR0skbaQtJBya4buMKnUstEf9yCxGC2KODHxLYs+2Pln9FFsn7H68C0I2glQ9EpV3bnLf8O0t60UokXsf1RMjmlkIvrno/IUeT293pH2yHWVsdxMVjwfQ0C8yizwnHYtG71c4xiZqH7qRiFinZz8+olKzwNOVk+oGfv3hw3pZTX2Tsm3gezY6tn3PbMyorbih1dTpLJS6mxb+T9AO3AX4ZGDRnIWD1Jd0aU1Kks3aT7omgbq+fXHSNQd5Mr/Ronv6yUt20WOL9pixlTkAK9oA/S5IWunPoNyrxCn6Pvs5n3XPloiXjYviA+Djum56TsOtudMzMAL+nCnRrruVl2u/5YrD9vv0JCx3j0FAkdTNOhYNDmym88IKO9MnNFBm4YzSYzNFoT8okCdpVW0Tq6AMmQKw9caiMIrISG82EMOikHlk0szBV/irs+9KF8Hyrc0Nhyp7r+GD9ww7pVzipStuwN6sI7Nd26qdHFC/bECVd9ou3qlh0qpvKnNzr0TsSOrEk/Jqt361KOKJ5pHEy9zdHdQsyxtwJXOrGOvuGbTTONGt3kxaoacGz0+vvXzqpXiv1gQHBH7WdBHalcy5dli5YuycRZSOOBRv2wMPkC+MygaadJCzo5bWohw8NKkjFQbBR/Q4Fv2N4nPFwsV4kIIOwxR5jAmP6Lczw/9yyGDplfyKxhCxNb1T71WbKrDkH3GuHZMofGrOFjcOReIeVg+rKVMjeQtgM9oXx6uVVxNR/ipOQnaNml3CoqPYg6Cy+n0sFRjW d91UeYfg GRpkTkVQywBPauMbLSyQWmbVPaknFklKknRZJJad0/QTOyiWMvLnmmKv2NgrBZuYX2LsjT+1+KY6MCoFQX09swbauCJHrhL3yO6OAP19d77JBVljOlNbw4kH5PB1MvAfS9SKvxpd8ZfmqQZpX2CbIwEf6uKAGQDP4w8esxhyE8gchMKTyH6hfy5UoEZ+K9OdFtz2tB32sS9CDK2Eh4qONgc0yGuOixCoDg7HMl+0Iw86reEQV86AW16iEpFnbQLYvdqhbJTmvu4vJ+F3yIONJh0D+3tS7uPNmBCUhoJ17MHv+xeQ= 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Fix and cleanups to page-writeback
|
expand
|
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index f6c7f3b0f495..5c19ebffe5be 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -2098,7 +2098,7 @@ bool wb_over_bg_thresh(struct bdi_writeback *wb) if (gdtc->dirty > gdtc->bg_thresh) return true; - thresh = wb_calc_thresh(gdtc->wb, gdtc->bg_thresh); + thresh = __wb_calc_thresh(gdtc, gdtc->bg_thresh); if (thresh < 2 * wb_stat_error()) reclaimable = wb_stat_sum(wb, WB_RECLAIMABLE); else
Call __wb_calc_thresh directly to remove unnecessary wrap of wb_calc_thresh. Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> --- mm/page-writeback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)