From patchwork Tue Jan 23 18:33:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 13527204 Return-Path: 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 C7415C47DDB for ; Tue, 23 Jan 2024 10:36:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A8F6C6B0083; Tue, 23 Jan 2024 05:36:03 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 730CC6B0085; Tue, 23 Jan 2024 05:36:03 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3FD7E6B008A; Tue, 23 Jan 2024 05:36:03 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id BF55A6B0080 for ; Tue, 23 Jan 2024 05:36:02 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 60FF08010A for ; Tue, 23 Jan 2024 10:36:02 +0000 (UTC) X-FDA: 81710220564.06.26B9DE9 Received: from dggsgout12.his.huawei.com (unknown [45.249.212.56]) by imf15.hostedemail.com (Postfix) with ESMTP id 9C272A0008 for ; Tue, 23 Jan 2024 10:35:56 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=none; spf=pass (imf15.hostedemail.com: domain of shikemeng@huaweicloud.com designates 45.249.212.56 as permitted sender) smtp.mailfrom=shikemeng@huaweicloud.com; dmarc=none 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:references; bh=edmQ5NvE+fbAbLkz4orqx8XA1RuGhsFqaExTwFzjatQ=; b=6aeYOfj/WDfr7+4DIs6DuHhuumsydi1dZpfyqO/EV5UMmDI94vkxO5seAXIoivvYXjtT8b 0+MU5O4fdyBigGHWgj/BbD3OTMQ2Tsp2bLCpO7mIQqCVHv+knrtRiidQYkkP29L3vPGS4N i2OnUlZiMJQUJp+ngQUONeuJ7p95h1o= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=none; spf=pass (imf15.hostedemail.com: domain of shikemeng@huaweicloud.com designates 45.249.212.56 as permitted sender) smtp.mailfrom=shikemeng@huaweicloud.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706006160; a=rsa-sha256; cv=none; b=Vp64bXXXxp/mE3A7hUe5wGkMrUez5TH3iOfLZzX4Ml71Ic6lp8VIXEfHwUdpv3HOBiKWD5 dSNWltsmYRjIg3T3zGf8LJstIUdGjGbBeQ5rlQUr8b8ANWshzi1diaRdUAGgFTw6bivrk1 sseTydHon8yjrFpVxjPAlgJfANcFH8k= Received: from mail.maildlp.com (unknown [172.19.93.142]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4TK3QW19G0z4f3js1 for ; Tue, 23 Jan 2024 18:35:47 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id 162741A0171 for ; Tue, 23 Jan 2024 18:35:51 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP1 (Coremail) with SMTP id cCh0CgA3Bg+Flq9ly6DjBg--.30161S2; Tue, 23 Jan 2024 18:35:50 +0800 (CST) From: Kemeng Shi 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 0/5] Fix and cleanups to page-writeback Date: Wed, 24 Jan 2024 02:33:27 +0800 Message-Id: <20240123183332.876854-1-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-CM-TRANSID: cCh0CgA3Bg+Flq9ly6DjBg--.30161S2 X-Coremail-Antispam: 1UD129KBjvdXoWrXr1rCFyfJr47uw4DGr1DGFg_yoWxXFg_Wa y8JasrGryUJFZ8Ga429wn8XFyDGw4UWr1UG3ZYqrWUJr1Iqr1DZF1DCa1rZr1xZF1UuFy3 AF9rXr4ftwn7CjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb7AYFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l87I20VAvwVAaII0Ic2I_JFv_Gryl8c AvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW7JVWD JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_Gc CE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxI r21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87 Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IY c2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s 026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF 0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY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0kFHZgWcK+BcZYd2TtXWA02tWoOBzSMEs88SdIFhupqPpol+mpBITh37YiadnCJNam5scdNQlKjvyYF6Ut0yxVmtgwGI+TxOqNQRyvV3fnJ0iB6z2AYA3DUVYj2ri+G1Ah1q08IrcW8rsUMWgMLIR86Ja8g7wWKGXmx7La+hNllh1S4uCvL4rMX/wQpj3OLYJbbowLOBKi/bwyg2QvSU/dhpQi6W/ninY TINQ4tA6 LGVYx8GcXR9TBBFYNTlvvQvlRwB+8dgIpLR4fWsOzXl8dnjqJ+wqaMyqKpjaGN5LgC2UVOs7fT7QcUTiuv8g48YaxuZkcmNZuxCGOOvx95kmklww5Sn8svH4JzDgFPHqMk7ehYI7+6HsJ0uU3/iysiBThOkEiiJch/DKuK92s87+oNAR7kyzmWBLLUaYvxzT+dOMr 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: List-Subscribe: List-Unsubscribe: This series contains some random cleanups and a fix to correct calculation of cgroup wb's bg_thresh. More details can be found respective patches. Thanks! Kemeng Shi (5): mm: enable __wb_calc_thresh to calculate dirty background threshold mm: correct calculation of cgroup wb's bg_thresh in wb_over_bg_thresh mm: call __wb_calc_thresh instead of wb_calc_thresh in wb_over_bg_thresh mm: remove redundant check in wb_min_max_ratio mm: remove stale comment __folio_mark_dirty mm/page-writeback.c | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-)