diff options
Diffstat (limited to 'mm/memory.c')
| -rw-r--r-- | mm/memory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/memory.c b/mm/memory.c index d72dc2efe5c7..0bad3cf9636c 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -839,8 +839,8 @@ int zeromap_page_range(struct vm_area_struct *vma, unsigned long address, unsign address = (address + PGDIR_SIZE) & PGDIR_MASK; dir++; } while (address && (address < end)); - spin_unlock(&mm->page_table_lock); flush_tlb_range(vma, beg, end); + spin_unlock(&mm->page_table_lock); return error; } @@ -922,8 +922,8 @@ int remap_page_range(struct vm_area_struct *vma, unsigned long from, unsigned lo from = (from + PGDIR_SIZE) & PGDIR_MASK; dir++; } while (from && (from < end)); - spin_unlock(&mm->page_table_lock); flush_tlb_range(vma, beg, end); + spin_unlock(&mm->page_table_lock); return error; } |
