[PATCH] mm: zap_pte_range dont dirty anon
authorHugh Dickins <hugh@veritas.com>
Sun, 30 Oct 2005 01:15:54 +0000 (18:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 30 Oct 2005 04:40:36 +0000 (21:40 -0700)
commit6237bcd94851e9cf0ecd2520d744779df0f5a9a6
tree5f34366cd527382489bd0bebbac8d39d59f1d5db
parent0c942a4539c09adf09097315cc174aefd0eeedf7
[PATCH] mm: zap_pte_range dont dirty anon

zap_pte_range already avoids wasting time to mark_page_accessed on anon pages:
it can also skip anon set_page_dirty - the page only needs to be marked dirty
if shared with another mm, but that will say pte_dirty too.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/memory.c