patch-2.4.3 linux/kernel/acct.c
Next file: linux/kernel/fork.c
Previous file: linux/ipc/shm.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Mon Mar 19 12:35:08 2001
- Orig file:
v2.4.2/linux/kernel/acct.c
- Orig date:
Wed Feb 21 18:20:46 2001
diff -u --recursive --new-file v2.4.2/linux/kernel/acct.c linux/kernel/acct.c
@@ -315,13 +315,13 @@
vsize = 0;
if (current->mm) {
struct vm_area_struct *vma;
- down(¤t->mm->mmap_sem);
+ down_read(¤t->mm->mmap_sem);
vma = current->mm->mmap;
while (vma) {
vsize += vma->vm_end - vma->vm_start;
vma = vma->vm_next;
}
- up(¤t->mm->mmap_sem);
+ up_read(¤t->mm->mmap_sem);
}
vsize = vsize / 1024;
ac.ac_mem = encode_comp_t(vsize);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)