From patchwork Fri Nov 5 20:43:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12605751 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18EA2C433EF for ; Fri, 5 Nov 2021 20:43:59 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id DB64C6136A for ; Fri, 5 Nov 2021 20:43:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DB64C6136A 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=kvack.org Received: by kanga.kvack.org (Postfix) id 989479400A8; Fri, 5 Nov 2021 16:43:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 89B51940093; Fri, 5 Nov 2021 16:43:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7D88C9400A7; Fri, 5 Nov 2021 16:43:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0181.hostedemail.com [216.40.44.181]) by kanga.kvack.org (Postfix) with ESMTP id 6CB85940093 for ; Fri, 5 Nov 2021 16:43:57 -0400 (EDT) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 3405077816 for ; Fri, 5 Nov 2021 20:43:57 +0000 (UTC) X-FDA: 78776053314.24.9D2DF90 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf28.hostedemail.com (Postfix) with ESMTP id 0F09790000A5 for ; Fri, 5 Nov 2021 20:43:48 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 413416135A; Fri, 5 Nov 2021 20:43:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1636145028; bh=J9KwG6Wm/mjzVYdnRDnygEce6+0CjcxTUg3/kbFl698=; h=Date:From:To:Subject:In-Reply-To:From; b=BOUliP9UgAhw9xlvin+k+WhXlZEfFAGP5i3FhgSGH6Re4fJUaVtzOLxhYuAoj8crz thnPhfyxaiFWxKczYFh6qsQsTnkut1OAtth7eQKWdK7KIoBP3PcnL3QoduPv0nZLSc NBRj6Sv/GVmc9XDxw+qbeoMyau+Wfa5AWwohhzvs= Date: Fri, 05 Nov 2021 13:43:47 -0700 From: Andrew Morton To: akpm@linux-foundation.org, linf@wangsu.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, torvalds@linux-foundation.org Subject: [patch 175/262] mm/readahead.c: fix incorrect comments for get_init_ra_size Message-ID: <20211105204347.ezf3f-ajG%akpm@linux-foundation.org> In-Reply-To: <20211105133408.cccbb98b71a77d5e8430aba1@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 0F09790000A5 X-Stat-Signature: dcsdkw8ggmi4w8xmcz39ebin85kymqot Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=BOUliP9U; spf=pass (imf28.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-HE-Tag: 1636145028-682087 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: Lin Feng Subject: mm/readahead.c: fix incorrect comments for get_init_ra_size In fact, formated values returned by get_init_ra_size are not that intuitive. This patch make the comments reflect its truth. Link: https://lkml.kernel.org/r/20211019104812.135602-1-linf@wangsu.com Signed-off-by: Lin Feng Signed-off-by: Andrew Morton --- mm/readahead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/readahead.c~mm-readaheadc-fix-incorrect-comments-for-get_init_ra_size +++ a/mm/readahead.c @@ -309,7 +309,7 @@ void force_page_cache_ra(struct readahea * Set the initial window size, round to next power of 2 and square * for small size, x 4 for medium, and x 2 for large * for 128k (32 page) max ra - * 1-8 page = 32k initial, > 8 page = 128k initial + * 1-2 page = 16k, 3-4 page 32k, 5-8 page = 64k, > 8 page = 128k initial */ static unsigned long get_init_ra_size(unsigned long size, unsigned long max) {