Commit a161d268 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] do_anonymous_page() use SetPageReferenced

mark_page_accessed() is more heavyweight than we need: the page is already
headed for the active list, so setting the software-referenced bit is
equivalent.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 21adf7ac
......@@ -1669,7 +1669,7 @@ do_anonymous_page(struct mm_struct *mm, struct vm_area_struct *vma,
vma->vm_page_prot)),
vma);
lru_cache_add_active(page);
mark_page_accessed(page);
SetPageReferenced(page);
page_add_anon_rmap(page, vma, addr);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment