patch-2.4.3 linux/arch/m68k/kernel/sys_m68k.c
Next file: linux/arch/m68k/mm/fault.c
Previous file: linux/arch/m68k/kernel/ints.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Mon Mar 19 12:35:09 2001
- Orig file:
v2.4.2/linux/arch/m68k/kernel/sys_m68k.c
- Orig date:
Mon Nov 27 17:11:26 2000
diff -u --recursive --new-file v2.4.2/linux/arch/m68k/kernel/sys_m68k.c linux/arch/m68k/kernel/sys_m68k.c
@@ -59,9 +59,9 @@
goto out;
}
- down(¤t->mm->mmap_sem);
+ down_write(¤t->mm->mmap_sem);
error = do_mmap_pgoff(file, addr, len, prot, flags, pgoff);
- up(¤t->mm->mmap_sem);
+ up_write(¤t->mm->mmap_sem);
if (file)
fput(file);
@@ -146,9 +146,9 @@
}
a.flags &= ~(MAP_EXECUTABLE | MAP_DENYWRITE);
- down(¤t->mm->mmap_sem);
+ down_write(¤t->mm->mmap_sem);
error = do_mmap_pgoff(file, a.addr, a.len, a.prot, a.flags, pgoff);
- up(¤t->mm->mmap_sem);
+ up_write(¤t->mm->mmap_sem);
if (file)
fput(file);
out:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)