|
@@ -1349,7 +1349,7 @@ retry_find:
|
|
|
* Do we miss much more than hit in this file? If so,
|
|
|
* stop bothering with read-ahead. It will only hurt.
|
|
|
*/
|
|
|
- if (ra->mmap_miss > ra->mmap_hit + MMAP_LOTSAMISS)
|
|
|
+ if (ra->mmap_miss > MMAP_LOTSAMISS)
|
|
|
goto no_cached_page;
|
|
|
|
|
|
/*
|
|
@@ -1375,7 +1375,7 @@ retry_find:
|
|
|
}
|
|
|
|
|
|
if (!did_readaround)
|
|
|
- ra->mmap_hit++;
|
|
|
+ ra->mmap_miss--;
|
|
|
|
|
|
/*
|
|
|
* We have a locked page in the page cache, now we need to check
|