From: Hugh Dickins Date: Sun, 30 Oct 2005 01:15:58 +0000 (-0700) Subject: [PATCH] mm: exit_mmap need not reset X-Git-Tag: v2.6.15-rc1~730^2^2~67 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=7c1fd6b964860cdcf44b6b98d7dcd8cc16a0a26d;p=~shefty%2Frdma-dev.git [PATCH] mm: exit_mmap need not reset 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/mmap.c b/mm/mmap.c index a3984fad3fc..459b9f068ad 100644 --- 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); /*