patch-2.4.3 linux/arch/ia64/kernel/sys_ia64.c
Next file: linux/arch/ia64/lib/copy_user.S
Previous file: linux/arch/ia64/ia32/sys_ia32.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Mon Mar 19 12:35:10 2001
- Orig file:
v2.4.2/linux/arch/ia64/kernel/sys_ia64.c
- Orig date:
Thu Jan 4 12:50:17 2001
diff -u --recursive --new-file v2.4.2/linux/arch/ia64/kernel/sys_ia64.c linux/arch/ia64/kernel/sys_ia64.c
@@ -102,7 +102,7 @@
* check and the clearing of r8. However, we can't call sys_brk() because we need
* to acquire the mmap_sem before we can do the test...
*/
- down(&mm->mmap_sem);
+ down_write(&mm->mmap_sem);
if (brk < mm->end_code)
goto out;
@@ -142,7 +142,7 @@
mm->brk = brk;
out:
retval = mm->brk;
- up(&mm->mmap_sem);
+ up_write(&mm->mmap_sem);
regs->r8 = 0; /* ensure large retval isn't mistaken as error code */
return retval;
}
@@ -200,9 +200,9 @@
if (flags & MAP_SHARED)
current->thread.flags |= IA64_THREAD_MAP_SHARED;
- down(¤t->mm->mmap_sem);
+ down_write(¤t->mm->mmap_sem);
addr = do_mmap_pgoff(file, addr, len, prot, flags, pgoff);
- up(¤t->mm->mmap_sem);
+ up_write(¤t->mm->mmap_sem);
current->thread.flags &= ~IA64_THREAD_MAP_SHARED;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)