patch-2.4.3 linux/arch/parisc/kernel/sys_parisc.c
Next file: linux/arch/parisc/mm/fault.c
Previous file: linux/arch/mips64/sgi-ip22/ip22-sc.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon Mar 19 12:35:11 2001
- Orig file:
v2.4.2/linux/arch/parisc/kernel/sys_parisc.c
- Orig date:
Tue Dec 5 12:29:39 2000
diff -u --recursive --new-file v2.4.2/linux/arch/parisc/kernel/sys_parisc.c linux/arch/parisc/kernel/sys_parisc.c
@@ -51,7 +51,7 @@
struct file * file = NULL;
int error;
- down(¤t->mm->mmap_sem);
+ down_write(¤t->mm->mmap_sem);
lock_kernel();
if (!(flags & MAP_ANONYMOUS)) {
error = -EBADF;
@@ -65,7 +65,7 @@
fput(file);
out:
unlock_kernel();
- up(¤t->mm->mmap_sem);
+ up_write(¤t->mm->mmap_sem);
return error;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)