Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131296
b: refs/heads/master
c: 9480c53
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Linus Torvalds committed Feb 11, 2009
1 parent 63e556f commit 8c631f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3abdbf90a3ffb006108c831c56b092e35483b6ec
refs/heads/master: 9480c53e9b2aa13a06283ffb96bb8f1873ac4e9a
10 changes: 6 additions & 4 deletions trunk/mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2084,12 +2084,8 @@ void exit_mmap(struct mm_struct *mm)
unsigned long end;

/* mm's last user has gone, and its about to be pulled down */
arch_exit_mmap(mm);
mmu_notifier_release(mm);

if (!mm->mmap) /* Can happen if dup_mmap() received an OOM */
return;

if (mm->locked_vm) {
vma = mm->mmap;
while (vma) {
Expand All @@ -2098,7 +2094,13 @@ void exit_mmap(struct mm_struct *mm)
vma = vma->vm_next;
}
}

arch_exit_mmap(mm);

vma = mm->mmap;
if (!vma) /* Can happen if dup_mmap() received an OOM */
return;

lru_add_drain();
flush_cache_mm(mm);
tlb = tlb_gather_mmu(mm, 1);
Expand Down

0 comments on commit 8c631f0

Please sign in to comment.