The patch titled smaps: flush tlb only once for each vma has been added to the -mm tree. Its filename is smaps-add-clear_refs-file-to-clear-reference-fix-fix.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: flush tlb only once for each vma From: David Rientjes <rientjes@xxxxxxxxxx> Flush the entire user address space from the TLB for each VMA in the task_struct list when clearing reference bits with /proc/pid/clear_refs. It's more efficient than flushing each page individually depending on pte_young(). Cc: Paul Mundt <lethal@xxxxxxxxxxxx> Cc: Christoph Lameter <clameter@xxxxxxx> Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/task_mmu.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN fs/proc/task_mmu.c~smaps-add-clear_refs-file-to-clear-reference-fix-fix fs/proc/task_mmu.c --- a/fs/proc/task_mmu.c~smaps-add-clear_refs-file-to-clear-reference-fix-fix +++ a/fs/proc/task_mmu.c @@ -276,7 +276,6 @@ static void clear_refs_one_pmd(struct vm if (pte_young(ptent)) { ptent = pte_mkold(ptent); set_pte_at(vma->vm_mm, addr, pte, ptent); - flush_tlb_page(vma, addr); } ClearPageReferenced(page); } @@ -358,6 +357,7 @@ void clear_refs_smap(struct mm_struct *m for (vma = mm->mmap; vma; vma = vma->vm_next) if (vma->vm_mm && !is_vm_hugetlb_page(vma)) for_each_pmd(vma, clear_refs_one_pmd, NULL); + flush_tlb_mm(mm); up_read(&mm->mmap_sem); } _ Patches currently in -mm which might be from rientjes@xxxxxxxxxx are 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-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