Commit 1d0c3d18 authored by Linus Torvalds's avatar Linus Torvalds Committed by Patrick Mochel

Remove re-use of "struct mm_struct" at execve() time.

This will eventually allow us to copy argc/argv without
any intermediate storage (removing current argument size
limitations).
parent ff0ce79f
......@@ -396,15 +396,6 @@ static int exec_mmap(void)
struct mm_struct * mm, * old_mm;
old_mm = current->mm;
task_lock(current);
if (old_mm && atomic_read(&old_mm->mm_users) == 1) {
mm_release();
exit_mmap(old_mm);
task_unlock(current);
return 0;
}
task_unlock(current);
mm = mm_alloc();
if (mm) {
struct mm_struct *active_mm;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment