X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=mm%2Frmap.c;h=cd356df4f71ab5aa0514e7685b4cce50eafceb6e;hb=52bc441ae7ecc2951d41fd72b63ce30ae51ba97c;hp=e22ceeb6e5ec8a07dafec758a55e26f8a590fe26;hpb=80cc38b16389849a6e06441ace4530f6b2497c3c;p=~andy%2Flinux diff --git a/mm/rmap.c b/mm/rmap.c index e22ceeb6e5e..cd356df4f71 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -720,7 +720,7 @@ int page_referenced_one(struct page *page, struct vm_area_struct *vma, * mapping is already gone, the unmap path will have * set PG_referenced or activated the page. */ - if (likely(!VM_SequentialReadHint(vma))) + if (likely(!(vma->vm_flags & VM_SEQ_READ))) referenced++; } pte_unmap_unlock(pte, ptl);