Commit 0a0dd05d authored by KOSAKI Motohiro's avatar KOSAKI Motohiro Committed by Linus Torvalds
Browse files

mm: don't call mark_page_accessed() in do_swap_page()

commit bf3f3bc5

 (mm: don't
mark_page_accessed in fault path) only remove the mark_page_accessed() in

Therefore, swap-backed pages and file-backed pages have inconsistent
behavior.  mark_page_accessed() should be removed from do_swap_page().

Signed-off-by: default avatarKOSAKI Motohiro <>
Cc: Nick Piggin <>
Cc: Hugh Dickins <>
Cc: Rik van Riel <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent ee99c71c
......@@ -2435,8 +2435,6 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma,
Supports Markdown
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