Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp536675rdh; Tue, 19 Dec 2023 06:31:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDDsJ4teH6df6zEmyjC6i8vf3YO68kJUPySekGGCPUigC+XJFWGDdPo897HGWoqQIU1L/C X-Received: by 2002:a17:906:6c97:b0:a23:ca2c:653b with SMTP id s23-20020a1709066c9700b00a23ca2c653bmr917522ejr.23.1702996260477; Tue, 19 Dec 2023 06:31:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702996260; cv=none; d=google.com; s=arc-20160816; b=ue0s7xwJTkFOnOrALITKMhUG/Yro4wo2mP+IsQSKVajsA0fxSgXT6TVbXce6AeDDOo O7prKreSPC3OEdxtvP4N7keU8OLUPISGN7xmRF4xRbLSXxPn2PJlAse86f9lCYIx+mks QL+eWNHtDVq7co2qR57LPW8Iq4y06akgwiRrh+xlrS7846hXwHn4bGE54Kf54AZfw6xC WPe92nNgJoN8pRWFnWD1ZP6kelOMEFPp/KRTudFmEiDxaUDDIYlHmj2LAct0eVSdl2Ru +/FDMF4miPWdaivZzOxya6GDvyYTwd/0ZFnVN+B7YtNArFdR8+bzEtu9GRq+xlLVASmS K47g== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5351-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t18-20020a508d52000000b0055214ee0ac2si5987054edt.250.2023.12.19.06.31.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 06:31:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-5351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5351-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id D6E931F265DC for ; Tue, 19 Dec 2023 14:25:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADFED1BDDF; Tue, 19 Dec 2023 14:25:16 +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 Content-Transfer-Encoding: 8bit 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(-) -- 2.19.1.6.gb485710b