The patch titled smaps: use ptep_test_and_clear_young has been added to the -mm tree. Its filename is smaps-use-ptep_test_and_clear_young.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: smaps: use ptep_test_and_clear_young From: David Rientjes <rientjes@xxxxxxxxxx> 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 <hugh@xxxxxxxxxxx> Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/task_mmu.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff -puN fs/proc/task_mmu.c~smaps-use-ptep_test_and_clear_young fs/proc/task_mmu.c --- a/fs/proc/task_mmu.c~smaps-use-ptep_test_and_clear_young +++ a/fs/proc/task_mmu.c @@ -273,10 +273,7 @@ static void clear_refs_pte_range(struct continue; /* Clear accessed and referenced bits. */ - if (pte_young(ptent)) { - ptent = pte_mkold(ptent); - set_pte_at(vma->vm_mm, addr, pte, ptent); - } + ptep_test_and_clear_young(vma, addr, pte); ClearPageReferenced(page); } pte_unmap_unlock(pte - 1, ptl); _ Patches currently in -mm which might be from rientjes@xxxxxxxxxx are x86_64-configurable-fake-numa-node-sizes.patch x86_64-configurable-fake-numa-node-sizes-fix.patch x86_64-split-remaining-fake-nodes-equally.patch x86_64-fixed-size-remaining-fake-nodes.patch x86_64-map-fake-nodes-to-real-nodes.patch x86_64-disable-alien-cache-for-fake-numa.patch x86_64-export-physnode-mapping-to-userspace.patch x86_64-fake-numa-for-cpusets-document.patch i386-add-ptep_test_and_clear_dirtyyoung.patch smaps-extract-pmd-walker-from-smaps-code.patch smaps-add-pages-referenced-count-to-smaps.patch smaps-add-clear_refs-file-to-clear-reference.patch smaps-add-clear_refs-file-to-clear-reference-fix.patch smaps-add-clear_refs-file-to-clear-reference-fix-fix.patch smaps-add-clear_refs-file-to-clear-reference-fix-fix-2.patch smaps-add-clear_refs-file-to-clear-reference-cleanup.patch smaps-use-ptep_test_and_clear_young.patch smaps-add-clear_refs-file-to-clear-reference-docs.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html