diff --git a/[refs] b/[refs] index c451a80e18ad..46642bd0281b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ef00e08e26dd5d84271ef706262506b82195e752 +refs/heads/master: 70ac23cfa31f68289d4b720c6162b3929ab4de36 diff --git a/trunk/mm/filemap.c b/trunk/mm/filemap.c index 827536485599..99977f0a94e4 100644 --- a/trunk/mm/filemap.c +++ b/trunk/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; }