patch-2.1.80 linux/kernel/fork.c
Next file: linux/kernel/ksyms.c
Previous file: linux/init/main.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Wed Jan 14 13:21:14 1998
- Orig file:
v2.1.79/linux/kernel/fork.c
- Orig date:
Mon Jan 12 22:09:24 1998
diff -u --recursive --new-file v2.1.79/linux/kernel/fork.c linux/kernel/fork.c
@@ -220,6 +220,7 @@
*tmp = *mpnt;
tmp->vm_flags &= ~VM_LOCKED;
tmp->vm_mm = mm;
+ mm->map_count++;
tmp->vm_next = NULL;
dentry = tmp->vm_dentry;
if (dentry) {
@@ -272,6 +273,7 @@
*mm = *current->mm;
init_new_context(mm);
mm->count = 1;
+ mm->map_count = 0;
mm->def_flags = 0;
mm->mmap_sem = MUTEX;
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov