]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - mm/rmap.c
md/raid1: make sequential read detection per disk based
[karo-tx-linux.git] / mm / rmap.c
index 5b5ad584ffb7dd7c9e00a885a018aaadba22f371..0f3b7cda2a24c5705ea4ad6e7ef127f53fdf3633 100644 (file)
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -755,12 +755,6 @@ int page_referenced_one(struct page *page, struct vm_area_struct *vma,
                pte_unmap_unlock(pte, ptl);
        }
 
-       /* Pretend the page is referenced if the task has the
-          swap token and is in the middle of a page fault. */
-       if (mm != current->mm && has_swap_token(mm) &&
-                       rwsem_is_locked(&mm->mmap_sem))
-               referenced++;
-
        (*mapcount)--;
 
        if (referenced)