lkml.org 
[lkml]   [2005]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 09/21] 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>
---

mm/mmap.c | 6 ------
1 files changed, 6 deletions(-)

--- mm08/mm/mmap.c 2005-09-24 19:28:01.000000000 +0100
+++ mm09/mm/mmap.c 2005-09-24 19:28:15.000000000 +0100
@@ -1944,12 +1944,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);

/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-09-25 17:57    [W:0.090 / U:0.028 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site