patch-2.4.3 linux/arch/mips/mm/umap.c
Next file: linux/arch/mips/sgi/kernel/indy_sc.c
Previous file: linux/arch/mips/mm/fault.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon Mar 19 12:35:09 2001
- Orig file:
v2.4.2/linux/arch/mips/mm/umap.c
- Orig date:
Mon Aug 7 21:02:27 2000
diff -u --recursive --new-file v2.4.2/linux/arch/mips/mm/umap.c linux/arch/mips/mm/umap.c
@@ -94,7 +94,7 @@
unsigned long beg = start;
pgd_t *dir;
- down (&task->mm->mmap_sem);
+ down_write (&task->mm->mmap_sem);
dir = pgd_offset (task->mm, start);
flush_cache_range (task->mm, beg, end);
while (start < end){
@@ -103,7 +103,7 @@
dir++;
}
flush_tlb_range (task->mm, beg, end);
- up (&task->mm->mmap_sem);
+ up_write (&task->mm->mmap_sem);
}
void *vmalloc_uncached (unsigned long size)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)