X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fcifs-2.6.git;a=blobdiff_plain;f=mm%2Fmemory.c;h=99e8d5c7b3126a455d664942d0f90621ce6c8825;hp=5e0e91cc6b67a895a2ca2c9101113f2a89877cc2;hb=4917e5d0499b5ae7b26b56fccaefddf9aec9369c;hpb=64cdd548ffe26849d4cd113ac640f60606063b14 diff --git a/mm/memory.c b/mm/memory.c index 5e0e91cc6b67..99e8d5c7b312 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -767,7 +767,8 @@ static unsigned long zap_pte_range(struct mmu_gather *tlb, else { if (pte_dirty(ptent)) set_page_dirty(page); - if (pte_young(ptent)) + if (pte_young(ptent) && + likely(!VM_SequentialReadHint(vma))) mark_page_accessed(page); file_rss--; }