]> git.baikalelectronics.ru Git - kernel.git/commit
i386 mm: use pte_update() in ptep_test_and_clear_dirty()
authorHugh Dickins <hugh@veritas.com>
Sat, 16 Jun 2007 17:15:59 +0000 (10:15 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 16 Jun 2007 20:16:15 +0000 (13:16 -0700)
commit2cd7ad6ab15429161df12928f32580bc417025fd
tree4048f434ec97b0b0415e3937c1e42be9cb6ca378
parentf3945c74b1a92f525f8d07a9183156b6660c81f2
i386 mm: use pte_update() in ptep_test_and_clear_dirty()

It is not safe to use pte_update_defer() in ptep_test_and_clear_young():
its only user, /proc/<pid>/clear_refs, drops pte lock before flushing TLB.
Use the safe though less efficient pte_update() paravirtop in its place.
Likewise in ptep_test_and_clear_dirty(), though that has no current use.

These are macros (header file dependency stops them from becoming inline
functions), so be more liberal with the underscores and parentheses.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: Zachary Amsden <zach@vmware.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-i386/pgtable.h