patch-2.4.3 linux/arch/s390x/kernel/exec32.c
Next file: linux/arch/s390x/kernel/linux32.c
Previous file: linux/arch/s390x/kernel/entry.S
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Thu Mar 22 09:25:21 2001
- Orig file:
v2.4.2/linux/arch/s390x/kernel/exec32.c
- Orig date:
Wed Feb 21 18:20:14 2001
diff -u --recursive --new-file v2.4.2/linux/arch/s390x/kernel/exec32.c linux/arch/s390x/kernel/exec32.c
@@ -54,7 +54,7 @@
if (!mpnt)
return -ENOMEM;
- down(¤t->mm->mmap_sem);
+ down_write(¤t->mm->mmap_sem);
{
mpnt->vm_mm = current->mm;
mpnt->vm_start = PAGE_MASK & (unsigned long) bprm->p;
@@ -73,12 +73,11 @@
struct page *page = bprm->page[i];
if (page) {
bprm->page[i] = NULL;
- current->mm->rss++;
put_dirty_page(current,page,stack_base);
}
stack_base += PAGE_SIZE;
}
- up(¤t->mm->mmap_sem);
+ up_write(¤t->mm->mmap_sem);
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)