Skip to content

Commit

Permalink
VM: can't go through the inner loop in unmap_vmas() more than once...
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Mar 21, 2012
1 parent 038c7aa commit 8b2a123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ unsigned long unmap_vmas(struct mmu_gather *tlb,
if (unlikely(is_pfn_mapping(vma)))
untrack_pfn_vma(vma, 0, 0);

while (start != end) {
if (start != end) {
if (unlikely(is_vm_hugetlb_page(vma))) {
/*
* It is undesirable to test vma->vm_file as it
Expand All @@ -1371,8 +1371,8 @@ unsigned long unmap_vmas(struct mmu_gather *tlb,
unmap_hugepage_range(vma, start, end, NULL);
} else
unmap_page_range(tlb, vma, start, end, details);
start = end;
}
start = end;
}

mmu_notifier_invalidate_range_end(mm, start_addr, end_addr);
Expand Down

0 comments on commit 8b2a123

Please sign in to comment.