]> git.hungrycats.org Git - linux/commitdiff
Remove re-use of "struct mm_struct" at execve() time.
authorLinus Torvalds <torvalds@home.transmeta.com>
Tue, 28 May 2002 15:01:57 +0000 (08:01 -0700)
committerPatrick Mochel <mochel@osdl.org>
Tue, 28 May 2002 15:01:57 +0000 (08:01 -0700)
This will eventually allow us to copy argc/argv without
any intermediate storage (removing current argument size
limitations).

fs/exec.c

index 7cdef9f1ab1b111406dd12a815a607d33585e07b..c199b24d9f6a1bf81cdc3b036cfd666df533f932 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -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;