patch-2.4.3 linux/arch/m68k/mm/fault.c
Next file: linux/arch/m68k/q40/README
Previous file: linux/arch/m68k/kernel/sys_m68k.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Mon Mar 19 12:35:10 2001
- Orig file:
v2.4.2/linux/arch/m68k/mm/fault.c
- Orig date:
Thu Jan 4 13:00:55 2001
diff -u --recursive --new-file v2.4.2/linux/arch/m68k/mm/fault.c linux/arch/m68k/mm/fault.c
@@ -101,7 +101,7 @@
if (in_interrupt() || !mm)
goto no_context;
- down(&mm->mmap_sem);
+ down_read(&mm->mmap_sem);
vma = find_vma(mm, address);
if (!vma)
@@ -168,7 +168,7 @@
#warning should be obsolete now...
if (CPU_IS_040_OR_060)
flush_tlb_page(vma, address);
- up(&mm->mmap_sem);
+ up_read(&mm->mmap_sem);
return 0;
/*
@@ -203,6 +203,6 @@
current->thread.faddr = address;
send_sig:
- up(&mm->mmap_sem);
+ up_read(&mm->mmap_sem);
return send_fault_sig(regs);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)