Skip to content

Commit

Permalink
VM: don't bother with feeding upper limit to tlb_finish_mmu() in exit…
Browse files Browse the repository at this point in the history
…_mmap()

no point, really - the only instance that cares about those arguments of
tlb_finish_mmu() is itanic and there we explicitly check if that's called
from exit_mmap() (i.e. that ->fullmm is set), in which case we ignore those
arguments completely.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Mar 21, 2012
1 parent 14f5ff5 commit 853f5e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2253,7 +2253,7 @@ void exit_mmap(struct mm_struct *mm)
vm_unacct_memory(nr_accounted);

free_pgtables(&tlb, vma, FIRST_USER_ADDRESS, 0);
tlb_finish_mmu(&tlb, 0, end);
tlb_finish_mmu(&tlb, 0, -1);

/*
* Walk the list again, actually closing and freeing it,
Expand Down

0 comments on commit 853f5e2

Please sign in to comment.