From: KOSAKI Motohiro Date: Tue, 31 Mar 2009 22:19:33 +0000 (-0700) Subject: mm: don't call mark_page_accessed() in do_swap_page() X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0a0dd05dd7e1a800241888cbf515bf8d3dc2e59c;p=linux-2.6-omap-h63xx.git mm: don't call mark_page_accessed() in do_swap_page() commit bf3f3bc5e734706730c12a323f9b2068052aa1f0 (mm: don't mark_page_accessed in fault path) only remove the mark_page_accessed() in filemap_fault(). Therefore, swap-backed pages and file-backed pages have inconsistent behavior. mark_page_accessed() should be removed from do_swap_page(). Signed-off-by: KOSAKI Motohiro Cc: Nick Piggin Cc: Hugh Dickins Cc: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memory.c b/mm/memory.c index 2032ad2fc34..0017111214c 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -2435,8 +2435,6 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma, count_vm_event(PGMAJFAULT); } - mark_page_accessed(page); - lock_page(page); delayacct_clear_flag(DELAYACCT_PF_SWAPIN);