mmu notifier: No need to invalidate_page in mremap We can do_munmap which calls unmap_region which in turn performs a call to invalidate_range(). Signed-off-by: Christoph Lameter --- mm/mremap.c | 2 -- 1 file changed, 2 deletions(-) Index: linux-2.6/mm/mremap.c =================================================================== --- linux-2.6.orig/mm/mremap.c 2008-01-25 14:05:39.000000000 -0800 +++ linux-2.6/mm/mremap.c 2008-01-25 14:05:53.000000000 -0800 @@ -18,7 +18,6 @@ #include #include #include -#include #include #include @@ -106,7 +105,6 @@ static void move_ptes(struct vm_area_str if (pte_none(*old_pte)) continue; pte = ptep_clear_flush(vma, old_addr, old_pte); - mmu_notifier(invalidate_page, mm, old_addr); pte = move_pte(pte, new_vma->vm_page_prot, old_addr, new_addr); set_pte_at(mm, new_addr, new_pte, pte); }