From patchwork Tue Dec 19 14:25:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingbo Xu X-Patchwork-Id: 13498362 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 4D9BDC41535 for ; Tue, 19 Dec 2023 14:25:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ACB3C8D0002; Tue, 19 Dec 2023 09:25:17 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A7B048D0001; Tue, 19 Dec 2023 09:25:17 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9690B8D0002; Tue, 19 Dec 2023 09:25:17 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 848988D0001 for ; Tue, 19 Dec 2023 09:25:17 -0500 (EST) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 5596BC0B5F for ; Tue, 19 Dec 2023 14:25:17 +0000 (UTC) X-FDA: 81583790274.19.910E854 Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) by imf13.hostedemail.com (Postfix) with ESMTP id 6004120015 for ; Tue, 19 Dec 2023 14:25:13 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=none; spf=pass (imf13.hostedemail.com: domain of jefflexu@linux.alibaba.com designates 115.124.30.110 as permitted sender) smtp.mailfrom=jefflexu@linux.alibaba.com; dmarc=pass (policy=none) header.from=alibaba.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1702995915; 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=UCiM+CGX6nbKdjA+DQiqmEzZi1+jMmATq58fKk2veJM=; b=fzwL28riZcgTsSN5ppOvyIq8TLkIFKTfeV08XYzKGDHDmzkfU5SKP0HrvEwl4tXu5P6GRz Ly3zvbFp7YmAePubJSUklLOfFwENWe1kDUxUC8oMyoyYy/Z+uCp3UaKOHUwijEM/n5m2S5 OIuYkBYLB3jaoMk67bFkgsSRApywk7Q= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702995915; a=rsa-sha256; cv=none; b=Z5P9Uy+hXBYX/HGuViQ7aY64X2qUdSjY4NvW6uWCVeLLw5VRhTN0JzvjjdqL7lZ1tAClws /JNEYI5YHYw3nGnpKAuswVeiiZCIVD/K46agPaT17seohhwZTha1te2fKrkHo7bGwMBoMR BMy+MmlcIKTWkKBm4nP4Shbz8sPGSSo= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=none; spf=pass (imf13.hostedemail.com: domain of jefflexu@linux.alibaba.com designates 115.124.30.110 as permitted sender) smtp.mailfrom=jefflexu@linux.alibaba.com; dmarc=pass (policy=none) header.from=alibaba.com X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R621e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0Vyr8E3a_1702995908; Received: from localhost(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0Vyr8E3a_1702995908) by smtp.aliyun-inc.com; Tue, 19 Dec 2023 22:25:09 +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, willy@infradead.org Subject: [PATCH v3 0/2] mm: fix arithmetic for bdi min_ratio and max_ratio Date: Tue, 19 Dec 2023 22:25:06 +0800 Message-Id: <20231219142508.86265-1-jefflexu@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.6.gb485710b MIME-Version: 1.0 X-Rspamd-Queue-Id: 6004120015 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: u6tkrqjyxqiwrptypo95wz3ugnqaukot X-HE-Tag: 1702995913-211513 X-HE-Meta: U2FsdGVkX1/aE7dliWnh1ET8pbNSkDsL8JvW9Ck15p4OyYGRwwaWaEpzMF1OgD2HhB7bYbJ046HgzaaGp6P8fuvQR8AyiMYNCVuBEUXOCIxqrt6+mrwM3aPxW/2dzYZVklUOE3uMyCoAm+/s96N+Tek9qDWuLw5o4oEdDfJIyY8m9BMvh9jEkgCBKq6AAwofIyBQC7+/BeONpbBcgmEXEQx+N9ozrEXRX64yoWkgTiFi1LV3ZSKFXab/24zClrcvDC87G6P7gqWVjY0wtQhjl1pKGipsmEG4zOiJZrjyNa1fmUBbuq9h7prMvIaqyULabokrNIqwdXM9Yw5rET/ojh+QHG6i93DragD4KW4YqsLaSwqrbbZ9CAGbVunGjKqrKm+ygCv9ZNtzd0UYv1bZNgehkmtaMjpJpShbO6DySdSwb3aYM2bil3mZRsDrEruAOyeyIieA8UnJTVswr8JWk6StGpW9LC6D/Ds9uwyi/1WQMQuLp1KWLl1fIQZ6EMNaxdFVUAf9ogOOIwoldI/W2hwVwFJsjVIik0qypc6Ye4I5KztrggG2CL9svYWzWhiYWtppZ15lxZbQmTZAc1QT6+svZgPLzcGE/lT8wPKJvrLlLfDXtl1deq7hbyP+f7oUYGNJnBonD9AEVvJcm8eMBER211Ct5WTPW9n8/LCfYEsUcaUyjmEBfGE1ZWv8xxKYFwwH8KqJAxBoy108xhWeay65wwpOvHkbx+hLV9w3GXhGToejZOCQ4YBMseChrJaK69UaEcxYQEplIjRSWsFYVNprd510miK1RGU6B3m3vif9bAVDQZFf1pfTlOunerK9qEue2lvn45AhcJR49b7qerXpO2sfB4Dkfhf+YZ3SBpXUlQfL+FdBdU670/+PRlZkAy1C1BYRiqYizJjHNBTShhkD+ScfU5kdLRN9EquxAty/m68ZyPVBG9CyrmO9WEHlKZ6gbbHeIpBeEp/Y7uq ixts26HT PrLotLd40lk/KCpc/qz3Cv+BNWlQ9ccCEoIjVk0XuQih9s7IO8TuZALUVt6j3ZmiSq1cCnPT6rEXuAgTCS+uTuyj3vv+JOSn6PfVI7AsScEwnPaa83rBFf8tlweUa85FPLdnTfIMRa1jzcvG3jbcyyIeAY4SCigJX4gLtrsZpZZHKJOJIk3qZN++h74ia68C/vcxe5A4NF0V+rQgOoThOHUbmc2HDCCXRIt74 X-Bogosity: Ham, tests=bogofilter, spamicity=0.004083, 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 v2: - patch 2: drop div64_u64(), instead write it out mathematically (Matthew Wilcox) 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/ v2: https://lore.kernel.org/all/20231219024246.65654-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(-)