linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] mm: don't mark_page_accessed() in do_swap_page()
@ 2009-02-11 12:33 KOSAKI Motohiro
  2009-02-11 12:35 ` [PATCH 2/2] mm: update_page_reclaim_stat() is called form page fault path KOSAKI Motohiro
  0 siblings, 1 reply; 4+ messages in thread
From: KOSAKI Motohiro @ 2009-02-11 12:33 UTC (permalink / raw)
  To: LKML, linux-mm, Andrew Morton, Nick Piggin, Hugh Dickins, Rik van Riel
  Cc: kosaki.motohiro


commit bf3f3bc5e734706730c12a323f9b2068052aa1f0 (mm: don't mark_page_accessed
in fault path) only remove the mark_page_accessed() in filemap_fault().

Therefore, swap-backed page and file-backed page have inconsistency behavior now.
mark_page_accessed() should be removed from do_swap_page().


Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Nick Piggin <npiggin@suse.de>
Cc: Hugh Dickins <hugh@veritas.com>
---
 mm/memory.c |    2 --
 1 file changed, 2 deletions(-)

Index: b/mm/memory.c
===================================================================
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -2440,8 +2440,6 @@ static int do_swap_page(struct mm_struct
 		count_vm_event(PGMAJFAULT);
 	}
 
-	mark_page_accessed(page);
-
 	lock_page(page);
 	delayacct_clear_flag(DELAYACCT_PF_SWAPIN);
 


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-02-12  1:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-11 12:33 [PATCH 1/2] mm: don't mark_page_accessed() in do_swap_page() KOSAKI Motohiro
2009-02-11 12:35 ` [PATCH 2/2] mm: update_page_reclaim_stat() is called form page fault path KOSAKI Motohiro
2009-02-11 23:18   ` Andrew Morton
2009-02-12  1:38     ` KOSAKI Motohiro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox