| Kernel v2.4.1-pre12 /mm/mmap.c |
|---|
 2.4.1-pre12
 mm
 mmap.c
diff -u --recursive --new-file v2.4.0/linux/mm/mmap.c linux/mm/mmap.c
--- v2.4.0/linux/mm/mmap.c Sat Dec 30 09:35:19 2000
+++ linux/mm/mmap.c Mon Jan 29 08:10:41 2001
@@ -883,6 +883,8 @@
mm->rss = 0;
mm->total_vm = 0;
mm->locked_vm = 0;
+
+ flush_cache_mm(mm);
while (mpnt) {
struct vm_area_struct * next = mpnt->vm_next;
unsigned long start = mpnt->vm_start;
@@ -895,13 +897,13 @@
}
mm->map_count--;
remove_shared_vm_struct(mpnt);
- flush_cache_range(mm, start, end);
zap_page_range(mm, start, size);
if (mpnt->vm_file)
fput(mpnt->vm_file);
kmem_cache_free(vm_area_cachep, mpnt);
mpnt = next;
}
+ flush_tlb_mm(mm);
/* This is just debugging */
if (mm->map_count)
|