linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/readahead.c: fix incorrect comments for get_init_ra_size
@ 2021-10-19 10:48 Lin Feng
  0 siblings, 0 replies; only message in thread
From: Lin Feng @ 2021-10-19 10:48 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel, linf

In fact, formated values returned by get_init_ra_size are not that
intuitive. This patch make the comments reflect its truth.

Signed-off-by: Lin Feng <linf@wangsu.com>
---
 mm/readahead.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/readahead.c b/mm/readahead.c
index 41b75d76d36e..88a84f254ed6 100644
--- a/mm/readahead.c
+++ b/mm/readahead.c
@@ -309,7 +309,7 @@ void force_page_cache_ra(struct readahead_control *ractl,
  * 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)
 {
-- 
2.31.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-19 10:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-19 10:48 [PATCH] mm/readahead.c: fix incorrect comments for get_init_ra_size Lin Feng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).