]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] mm: exit_mmap need not reset
authorHugh Dickins <hugh@veritas.com>
Sun, 30 Oct 2005 01:15:58 +0000 (18:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 30 Oct 2005 04:40:37 +0000 (21:40 -0700)
exit_mmap resets various mm_struct fields, but the mm is well on its way out,
and none of those fields matter by this point.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/mmap.c

index a3984fad3fc2cb61257e3a1f585195a8a5f9afb7..459b9f068ad7b13f8241f024fe779e2b26cfcff7 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1948,12 +1948,6 @@ void exit_mmap(struct mm_struct *mm)
        free_pgtables(&tlb, vma, FIRST_USER_ADDRESS, 0);
        tlb_finish_mmu(tlb, 0, end);
 
-       mm->mmap = mm->mmap_cache = NULL;
-       mm->mm_rb = RB_ROOT;
-       set_mm_counter(mm, rss, 0);
-       mm->total_vm = 0;
-       mm->locked_vm = 0;
-
        spin_unlock(&mm->page_table_lock);
 
        /*