aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
authorHugh Dickins <hugh@veritas.com>2005-10-29 21:15:58 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-10-30 00:40:37 -0400
commit7c1fd6b964860cdcf44b6b98d7dcd8cc16a0a26d (patch)
tree0193feec4e7a43ce2f15f659cd5c56776da60ce5 /mm/mmap.c
parenta8fb5618dab7e45c8990f3155628d772a9ed45f9 (diff)
[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 <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/mmap.c')
-rw-r--r--mm/mmap.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index a3984fad3fc2..459b9f068ad7 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1948,12 +1948,6 @@ void exit_mmap(struct mm_struct *mm)
1948 free_pgtables(&tlb, vma, FIRST_USER_ADDRESS, 0); 1948 free_pgtables(&tlb, vma, FIRST_USER_ADDRESS, 0);
1949 tlb_finish_mmu(tlb, 0, end); 1949 tlb_finish_mmu(tlb, 0, end);
1950 1950
1951 mm->mmap = mm->mmap_cache = NULL;
1952 mm->mm_rb = RB_ROOT;
1953 set_mm_counter(mm, rss, 0);
1954 mm->total_vm = 0;
1955 mm->locked_vm = 0;
1956
1957 spin_unlock(&mm->page_table_lock); 1951 spin_unlock(&mm->page_table_lock);
1958 1952
1959 /* 1953 /*