X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=mm%2Fmremap.c;h=5d4bd4f95b8e5ef28f269f604b61d133f341d27b;hb=c9ffec48487849bc277de662a6c29aad64653b99;hp=7c15cf3373ad0d0e94ba6f5b74145339da0052d3;hpb=f20dc5f7c1adf1c4b68b7672d6f2002cb824e636;p=linux-2.6-omap-h63xx.git diff --git a/mm/mremap.c b/mm/mremap.c index 7c15cf3373a..5d4bd4f95b8 100644 --- a/mm/mremap.c +++ b/mm/mremap.c @@ -98,17 +98,18 @@ static void move_ptes(struct vm_area_struct *vma, pmd_t *old_pmd, new_ptl = pte_lockptr(mm, new_pmd); if (new_ptl != old_ptl) spin_lock_nested(new_ptl, SINGLE_DEPTH_NESTING); + arch_enter_lazy_mmu_mode(); for (; old_addr < old_end; old_pte++, old_addr += PAGE_SIZE, new_pte++, new_addr += PAGE_SIZE) { if (pte_none(*old_pte)) continue; pte = ptep_clear_flush(vma, old_addr, old_pte); - /* ZERO_PAGE can be dependant on virtual addr */ pte = move_pte(pte, new_vma->vm_page_prot, old_addr, new_addr); set_pte_at(mm, new_addr, new_pte, pte); } + arch_leave_lazy_mmu_mode(); if (new_ptl != old_ptl) spin_unlock(new_ptl); pte_unmap_nested(new_pte - 1);