From patchwork Thu Apr 25 13:17:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 13643332 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 58D00C19F4F for ; Thu, 25 Apr 2024 13:17:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C68E36B0088; Thu, 25 Apr 2024 09:17:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BCCBD6B0083; Thu, 25 Apr 2024 09:17:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9CFD56B008A; Thu, 25 Apr 2024 09:17:36 -0400 (EDT) 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 8033B6B0083 for ; Thu, 25 Apr 2024 09:17:36 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 2A10A12126D for ; Thu, 25 Apr 2024 13:17:36 +0000 (UTC) X-FDA: 82048106112.19.69A4A6F Received: from dggsgout12.his.huawei.com (unknown [45.249.212.56]) by imf29.hostedemail.com (Postfix) with ESMTP id CC3E2120020 for ; Thu, 25 Apr 2024 13:17:31 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf29.hostedemail.com: domain of shikemeng@huaweicloud.com designates 45.249.212.56 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=1714051054; 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=cFjOVo8uTztIYCrgyJWSf/Y98LNyaPHytDsNj7/ILPY=; b=G2nSJNUeo0F9hIgsGMazip+JmZYLEfyiCoskTO0ilAnLD/nWscUnE6BvQXTJ+Ur7mKPZWa iTx3op+kZ0Jh8kpfB5YyqhQnbMU05J5hZjgByM4ODmBzO7C2R0W3Zw6Pd5D06UdNhy1+uT P0xH/eB5//m+lZjTdPkQQEwJ75f2QXs= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714051054; a=rsa-sha256; cv=none; b=wA6RsVfOhpORQ7Nd77FfZi0nPEt5j9BPoyQ4ykQ68SNJCjt4qEtJFMFmgi5BZRURoUZsQc +pqOubZ9ezFbGIbjCN/WfDNh68wMwUVgedCYUWNb5V0J/E4cYHTPr1rZy/sX32UNYr+d15 uSFT6PHGZ8Nyw5YOQzXcGuLbLTbwllY= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf29.hostedemail.com: domain of shikemeng@huaweicloud.com designates 45.249.212.56 as permitted sender) smtp.mailfrom=shikemeng@huaweicloud.com Received: from mail.maildlp.com (unknown [172.19.163.235]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4VQGby3Y5qz4f3khf for ; Thu, 25 Apr 2024 21:17:18 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.252]) by mail.maildlp.com (Postfix) with ESMTP id 1CE0F1A058D for ; Thu, 25 Apr 2024 21:17:26 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.101.6]) by APP3 (Coremail) with SMTP id _Ch0CgA3+J_kVypmFDcOKw--.42283S2; Thu, 25 Apr 2024 21:17:25 +0800 (CST) From: Kemeng Shi To: willy@infradead.org, akpm@linux-foundation.org Cc: tj@kernel.org, jack@suse.cz, hcochran@kernelspring.com, axboe@kernel.dk, mszeredi@redhat.com, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/4] Fix and cleanups to page-writeback Date: Thu, 25 Apr 2024 21:17:20 +0800 Message-Id: <20240425131724.36778-1-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-CM-TRANSID: _Ch0CgA3+J_kVypmFDcOKw--.42283S2 X-Coremail-Antispam: 1UD129KBjvdXoWrKr1DtFykCFW7ZF1UCry5XFb_yoW3Krc_Wa y8JasrGryUXF43Wa429wn8XFyUKr4UWryDG3ZYqFWDAryIqr4DZrn2kw4fZr1xZFy7AFW3 uFZrXw4fJwn2kjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb28YFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwV A0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW7JVWDJwA2z4x0Y4vE2Ix0cI8IcVCY1x02 67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I 0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40E x7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x 0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lFIxGxcIEc7CjxVA2Y2ka0xkIwI1l42xK82IY c2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s 026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF 0xvE2Ix0cI8IcVAFwI0_Jr0_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C4hwjTDYWTOrwEtC1g6wq2vx7mjbRTQr3CUmPF5DTXhHQ0lVY0SJxQfNelbDKqkyPQfcSY+189qFS6wY02B8u7PkYGkWxksT9Cqr6gqhzyL7x9ODw+CaHsEUwcN4X1jrdVDOx+a6LNDw2gtHlhujQctixzqE0olQHEbsyW5hsYFqydZx76XYbkVSDMKfa/22gsmHtOkgvOksy3i56Rjn8KE/ldlmAESPijWSKvsSYqoZ1U/8DT8FZ2M0gQS/k WK4hoSuO u8RreqvNbf1BXR81+568k/+iAv2mQqCvBGI/kEpHQ/gX2qryIdOPDNkK1VNxe9H0QDUKATj8WGbR6Q3veHtW6EK0VuZ4Ff95tXdGaMRmniWtmoz3OlWpYh0bOZFqs8ld0xgIIBx0INSAb226nNPFatN8mwGX0mRjpwSmb 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: v1->v2: -rebase on up-to-date tree. -add test result in "mm: correct calculation of wb's bg_thresh in cgroup domain" -drop "mm: remove redundant check in wb_min_max_ratio" -collect RVB from Matthew to "mm: remove stale comment __folio_mark_dirty" This series contains some random cleanups and a fix to correct calculation of wb's bg_thresh in cgroup domain. More details can be found respective patches. Thanks! Kemeng Shi (4): mm: enable __wb_calc_thresh to calculate dirty background threshold mm: correct calculation of wb's bg_thresh in cgroup domain mm: call __wb_calc_thresh instead of wb_calc_thresh in wb_over_bg_thresh mm: remove stale comment __folio_mark_dirty mm/page-writeback.c | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-)