patch-2.4.0-test10 linux/fs/exec.c
Next file: linux/fs/ext2/namei.c
Previous file: linux/fs/devfs/util.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Fri Oct 13 12:10:30 2000
- Orig file:
v2.4.0-test9/linux/fs/exec.c
- Orig date:
Sun Sep 3 22:49:25 2000
diff -u --recursive --new-file v2.4.0-test9/linux/fs/exec.c linux/fs/exec.c
@@ -314,9 +314,9 @@
mpnt->vm_pgoff = 0;
mpnt->vm_file = NULL;
mpnt->vm_private_data = (void *) 0;
- vmlist_modify_lock(current->mm);
+ spin_lock(¤t->mm->page_table_lock);
insert_vm_struct(current->mm, mpnt);
- vmlist_modify_unlock(current->mm);
+ spin_unlock(¤t->mm->page_table_lock);
current->mm->total_vm = (mpnt->vm_end - mpnt->vm_start) >> PAGE_SHIFT;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)