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: 18304 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp1975015dyi; Tue, 19 Dec 2023 06:27:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1ZxKpYNJ7JH8NVi0uQsHLAP0FrpCDva8t7tJZOyc+A2oVUSGev+MFCuli/PPcYHBYicBg X-Received: by 2002:a05:6a20:4fa0:b0:18f:97c:ba11 with SMTP id gh32-20020a056a204fa000b0018f097cba11mr7995989pzb.107.1702996068833; Tue, 19 Dec 2023 06:27:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702996068; cv=none; d=google.com; s=arc-20160816; b=Op9cJSYO9ugzpeReXvzdEbiwmfIIeSq35LK0ELDINV1HxM+jPPMDQ9ajUVV7JQhjga FKOINTg33P7t7QmTBVFI0n5tZFtVX9x0vDhAw5iikV79URHqaBhHg6T+ozH9uYupvaes 43yAD1bxON3BVA5CCLnVXSSB2O2FXjnS7rhVmYaxu8PqG92bcWL5CRZT52gWKtZA3/eE fnBPNPi2EIIE61OKMbTZax0uxluR29/dI7MnkLi5a95gE5R20VINERdbuGVMyJS/3qbB 5N/zIisvbvqBIrcyANExxSI8TMKSQWUXN1eM9LHgBKojOxVOYoWRf3I/ZDRJt3JfNnjE gaQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=UCiM+CGX6nbKdjA+DQiqmEzZi1+jMmATq58fKk2veJM=; fh=e/E5Z5uKag/MmdmVaHa/8oiovY/7OlXJBsHI95ofI58=; b=BRAneaJOW1ViUi5+Bx4gR+/80XwSNCQPXrDdcgV4I1vcA3d/TLjNwGBanoXy6jdwhl 7PPlTs1hniNhuVScIsBgzdgzcN7grGG0cc2l3FdVm1nGYU7opQphA2WidI4id0Gf1PFV YSZf8KCzlhsalmXiGQdAXgTUy8/M8I/deVMeqTi7ulD8uBIx2lN8NdvzHjfURMlTL1Q9 ynyTDMUW8/f1wJbP0qd3McaKmu+++fRm1Nq4yxRA35jFJB2oAD5Z6F6ntZzoap4ZVMGF rloHJqKJRNCQO+0rk1CQTpzUBQGBro0DF9QHFkD8CyyqprsDQqWzqjCDhMZlkQiprbQM mHaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-5351-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5351-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q12-20020a056a00088c00b006cddc343ceesi20055933pfj.181.2023.12.19.06.27.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 06:27:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5351-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-5351-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5351-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5826C288300 for ; Tue, 19 Dec 2023 14:25:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB5351C2BC; Tue, 19 Dec 2023 14:25:17 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 68FBF1B283; Tue, 19 Dec 2023 14:25:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785720805904150633 X-GMAIL-MSGID: 1785720805904150633 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(-)