diff options
-rw-r--r-- | mm/readahead.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/readahead.c b/mm/readahead.c index 57557e294987..301b36c4a0ce 100644 --- a/mm/readahead.c +++ b/mm/readahead.c | |||
@@ -83,10 +83,10 @@ static unsigned long get_init_ra_size(unsigned long size, unsigned long max) | |||
83 | { | 83 | { |
84 | unsigned long newsize = roundup_pow_of_two(size); | 84 | unsigned long newsize = roundup_pow_of_two(size); |
85 | 85 | ||
86 | if (newsize <= max / 64) | 86 | if (newsize <= max / 32) |
87 | newsize = newsize * newsize; | 87 | newsize = newsize * 4; |
88 | else if (newsize <= max / 4) | 88 | else if (newsize <= max / 4) |
89 | newsize = max / 4; | 89 | newsize = newsize * 2; |
90 | else | 90 | else |
91 | newsize = max; | 91 | newsize = max; |
92 | return newsize; | 92 | return newsize; |