aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/filemap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index c974a2863897..e5131392d32e 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1566,7 +1566,8 @@ static void do_sync_mmap_readahead(struct vm_area_struct *vma,
1566 return; 1566 return;
1567 } 1567 }
1568 1568
1569 if (ra->mmap_miss < INT_MAX) 1569 /* Avoid banging the cache line if not needed */
1570 if (ra->mmap_miss < MMAP_LOTSAMISS * 10)
1570 ra->mmap_miss++; 1571 ra->mmap_miss++;
1571 1572
1572 /* 1573 /*