From patchwork Tue Jun 29 02:35:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12348959 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADAC1C11F66 for ; Tue, 29 Jun 2021 02:35:37 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6236161D06 for ; Tue, 29 Jun 2021 02:35:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6236161D06 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B805D8D00A1; Mon, 28 Jun 2021 22:35:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B30B78D008F; Mon, 28 Jun 2021 22:35:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9F9888D00A1; Mon, 28 Jun 2021 22:35:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0007.hostedemail.com [216.40.44.7]) by kanga.kvack.org (Postfix) with ESMTP id 75B6D8D008F for ; Mon, 28 Jun 2021 22:35:36 -0400 (EDT) Received: from smtpin37.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 6E16118151134 for ; Tue, 29 Jun 2021 02:35:36 +0000 (UTC) X-FDA: 78305195472.37.60AD6E4 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf06.hostedemail.com (Postfix) with ESMTP id 3043EC0201F8 for ; Tue, 29 Jun 2021 02:35:36 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 26E5961D02; Tue, 29 Jun 2021 02:35:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1624934135; bh=UCLIWC3XE2ZeSsayDWFa9B1L/a5HdwC3IIzLkvkIgQU=; h=Date:From:To:Subject:In-Reply-To:From; b=2nELvZc4X8mTauqHcTPjBPnCRlaaJbK2eXsbsGCf5c+CqdeEkcYY7DhNxgPPcpimq FC4XoxRuSz2iMHhG60Opt3CS3lvD+uuHRTa1x3GpMRv4V90cMrnefDCmCOGNezJhJ4 gn2v+qrA1dyxmjyTILvG4DGzTypQFMyUyjygvnPI= Date: Mon, 28 Jun 2021 19:35:34 -0700 From: Andrew Morton To: akpm@linux-foundation.org, axboe@fb.com, hcochran@kernelspring.com, jack@suse.cz, linux-mm@kvack.org, mm-commits@vger.kernel.org, mszeredi@redhat.com, sedat.dilek@gmail.com, tj@kernel.org, torvalds@linux-foundation.org, wuchi.zero@gmail.com Subject: [patch 044/192] mm/page-writeback: update the comment of Dirty position control Message-ID: <20210629023534.q8-pTS97e%akpm@linux-foundation.org> In-Reply-To: <20210628193256.008961950a714730751c1423@linux-foundation.org> User-Agent: s-nail v14.8.16 Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=2nELvZc4; spf=pass (imf06.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Stat-Signature: kh39npx9nhxjb9nxt4587jsfrrr7o5yi X-Rspamd-Queue-Id: 3043EC0201F8 X-Rspamd-Server: rspam06 X-HE-Tag: 1624934136-268986 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: From: Chi Wu Subject: mm/page-writeback: update the comment of Dirty position control As the value of pos_ratio_polynom() clamp between 0 and 2LL << RATELIMIT_CALC_SHIFT, the global control line should be consistent with it. Link: https://lkml.kernel.org/r/20210511103606.3732-1-wuchi.zero@gmail.com Signed-off-by: Chi Wu Reviewed-by: Jan Kara Cc: Jens Axboe Cc: Howard Cochran Cc: Miklos Szeredi Cc: Sedat Dilek Cc: Tejun Heo Signed-off-by: Andrew Morton --- mm/page-writeback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/page-writeback.c~mm-page-writeback-update-the-comment-of-dirty-position-control +++ a/mm/page-writeback.c @@ -845,7 +845,7 @@ static long long pos_ratio_polynom(unsig * ^ pos_ratio * | * | |<===== global dirty control scope ======>| - * 2.0 .............* + * 2.0 * * * * * * * * | .* * | . * * | . *