Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151509
b: refs/heads/master
c: 70ac23c
h: refs/heads/master
i:
  151507: 951bba1
v: v3
  • Loading branch information
Wu Fengguang authored and Linus Torvalds committed Jun 17, 2009
1 parent 0b5710f commit 9068e76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef00e08e26dd5d84271ef706262506b82195e752
refs/heads/master: 70ac23cfa31f68289d4b720c6162b3929ab4de36
3 changes: 2 additions & 1 deletion trunk/mm/filemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9068e76

Please sign in to comment.