git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
readahead: sequential mmap readahead
[sfrench/cifs-2.6.git]
/
mm
/
filemap.c
diff --git
a/mm/filemap.c
b/mm/filemap.c
index 827536485599c5e1bfdd637697902252682123b5..99977f0a94e4719f9a3644ff018aa35ea3cfbc6f 100644
(file)
--- a/
mm/filemap.c
+++ b/
mm/filemap.c
@@
-1472,7
+1472,8
@@
static void do_sync_mmap_readahead(struct vm_area_struct *vma,
if (VM_RandomReadHint(vma))
return;
- if (VM_SequentialReadHint(vma)) {
+ if (VM_SequentialReadHint(vma) ||
+ offset - 1 == (ra->prev_pos >> PAGE_CACHE_SHIFT)) {
page_cache_sync_readahead(mapping, ra, file, offset, 1);
return;
}