patch-2.4.1 linux/mm/mmap.c
Next file: linux/mm/page_alloc.c
Previous file: linux/mm/memory.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Mon Jan 29 08:10:41 2001
- Orig file:
v2.4.0/linux/mm/mmap.c
- Orig date:
Sat Dec 30 09:35:19 2000
diff -u --recursive --new-file v2.4.0/linux/mm/mmap.c linux/mm/mmap.c
@@ -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)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)