[patch -mm 2/2] smaps: use ptep_test_and_clear_young

2007-03-25 Thread David Rientjes
Use arch-specified ptep_test_and_clear_young() to clear the pte accessed bits for /proc/pid/clear_refs. This avoids a race condition if a pte is modified between pte_mkold() and set_pte_at(). Cc: Hugh Dickins <[EMAIL PROTECTED]> Signed-off-by: David Rientjes <[EMAIL PROTECTED]> ---

[patch -mm 2/2] smaps: use ptep_test_and_clear_young

2007-03-25 Thread David Rientjes
Use arch-specified ptep_test_and_clear_young() to clear the pte accessed bits for /proc/pid/clear_refs. This avoids a race condition if a pte is modified between pte_mkold() and set_pte_at(). Cc: Hugh Dickins [EMAIL PROTECTED] Signed-off-by: David Rientjes [EMAIL PROTECTED] ---