From patchwork Tue Dec 19 02:42:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingbo Xu X-Patchwork-Id: 13497800 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 89CBFC35274 for ; Tue, 19 Dec 2023 02:42:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F1A9D6B007D; Mon, 18 Dec 2023 21:42:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EFCF86B0087; Mon, 18 Dec 2023 21:42:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D4F626B0085; Mon, 18 Dec 2023 21:42:53 -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 C29EA6B007D for ; Mon, 18 Dec 2023 21:42:53 -0500 (EST) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 9029B140107 for ; Tue, 19 Dec 2023 02:42:53 +0000 (UTC) X-FDA: 81582020226.13.2B14132 Received: from out30-118.freemail.mail.aliyun.com (out30-118.freemail.mail.aliyun.com [115.124.30.118]) by imf25.hostedemail.com (Postfix) with ESMTP id A59F3A0004 for ; Tue, 19 Dec 2023 02:42:50 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=alibaba.com; spf=pass (imf25.hostedemail.com: domain of jefflexu@linux.alibaba.com designates 115.124.30.118 as permitted sender) smtp.mailfrom=jefflexu@linux.alibaba.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1702953772; 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=kafwFbeCPbyi1kYL/tlFLELLALqjnRZugmWnSB7FZa4=; b=NrDlNMXEDQZ597tK4yYkkKiq3/GSFj9FULCY4RMpEFZt5fgSAidWjK4AtIsSWsVOgIznQX 9P061wcjPqA1B/M5GcTDpObhlXbv3EWiXZnmjJ/Ia/6JJJaxwd3lqOWVLlkCkiKlq/oLIj DYRuvzS0co3HxYsS8azOF+T3yjHF7eI= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=alibaba.com; spf=pass (imf25.hostedemail.com: domain of jefflexu@linux.alibaba.com designates 115.124.30.118 as permitted sender) smtp.mailfrom=jefflexu@linux.alibaba.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702953772; a=rsa-sha256; cv=none; b=R8vdP9/TJ+c6uqTFYx62iXLYU1ocqot3DUJhWaVmdqINtXPtCZLvDr7OV+12fvWbR+bExu Pm+xZw4w8DDxsuMILRIUlhl57dgLd1cyW+INICGUxGb1fkgN2YB1YUAiFH3DxJ0vc3zSyQ JI247r90XoBB9XmWkMmv0R+WPcg56sM= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R681e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0Vyp0Roi_1702953766; Received: from localhost(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0Vyp0Roi_1702953766) by smtp.aliyun-inc.com; Tue, 19 Dec 2023 10:42:47 +0800 From: Jingbo Xu To: shr@devkernel.io, akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, joseph.qi@linux.alibaba.com, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org Subject: [PATCH v2 0/2] mm: fix arithmetic for bdi min_ratio and Date: Tue, 19 Dec 2023 10:42:44 +0800 Message-Id: <20231219024246.65654-1-jefflexu@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.6.gb485710b MIME-Version: 1.0 X-Rspamd-Queue-Id: A59F3A0004 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: 5c7gxb89jreeou5rhmha9zntqw4pfx8e X-HE-Tag: 1702953770-98871 X-HE-Meta: U2FsdGVkX19LGvy7LtzL+WrzMzANf1hsgLRsSm+Y6rPGdeAuKxkbkeio0s/UUrkj9KRvy+UT2t873wK46sCGZC4B+hDA+2AxGhrPNptH4IoAOZoL9O+A2oen1StaFOPun4FCG7MjySxsZG3xCgV1QTcu6E61m98aF4dj01DHQqZJuRNiwlIw2QL1DkOZ/i30mdhPm29t1a+7M+zk3jcKUy5pL74ZlQXlIlshDZNc/Ev4FQ4Hu9HQjdqhsa6+pXJpEKQYLJ5+MUs2YQ18U/C/RxLg+WWxniT7Mu0YvXy0a0DIftLfu8oE8V9yOspkdAZotlRijSom6RcB+aZl5mI/x5VHUoQyMCPRp9Mb0+x//2Zrl52CT7s4TENsby9dSiL8z/zkn6KmshD3xw86n2q3xUhJZynNjvGyq2NrRMLT8tch6xcmv66UB54El0tb2SE2TP1Eb1OsgrBIjVhbj24P69hnYHhpU7mmmg3Qnfyt9AlWvCBaig2YDo1Jr5k5elJYla6U1gnRy1H/sM7hB58sXzhEQBBeehwG/WXsKw55MHQtI237HHna7zNo5z4zjKY0NRYiP6VSoNTmwCfmNjnqnuqpIj3Cmb0V+VZDGb/X68onyyoLjSgvReyBebmhN0yiz9tUlgIp6a8k9acrcqSJLquX6CNZbkb2Spj0RnALxEeBwH78e3AoXyIq1axHBlIwTJ1Q68v/JcBOVo1DqM2hMY5D6oewXvqpD/fNSU4hNL6D5aDvI/wBkl93tWhs2Ya8UHTYeKhmwmZHQoyUp98144PznXTordJsb0ScZ3m1c0b1WQZaEJHCJPeMPJMtoCvNX47ddNpv/JZevaKubqY40aDRIdOTrTd0dN8xqCMv0KKBnU8kjAkV0rix+JF3+e71lKh64I6r0Sfin/ng7zCukSzXFHbnOrcR9ONs7yCkJANaOwF2DQPsBZDH6GOiEFmdq35TDC16bUDsve68kpr LIbAppCN KANfIW1WpvjxM/LxYUTSfi6Y6qfiu4IbddZMD3FB7hmx+jMMv1rDunaKuSdjuUnWS8lL61mqMwwTwcceaWRTyyGA1OhR/zBGuv29QpIOaHMBwRZZMWJkBR7XsGhhLNkWBkQYzZfPScHH8kzYJcimXdTCMZWi3a3BReojAdKFf25Ep/GcKj36RSY3r1JIgqiGKBco0eWpvsa0vdQP7d/dnvRUPF/xuy6LOBfeB X-Bogosity: Ham, tests=bogofilter, spamicity=0.001263, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: changes since v1: - split the previous v1 patch into two separate patches with corresponding "Fixes" tag (Andrew Morton) - patch 2: remove "UL" suffix for the "100" constant v1: https://lore.kernel.org/all/20231218031640.77983-1-jefflexu@linux.alibaba.com/ Jingbo Xu (2): mm: fix arithmetic for bdi min_ratio mm: fix arithmetic for max_prop_frac when setting max_ratio mm/page-writeback.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)