staging: vchi: Get rid of vchiq_shim's message callback
[linux-2.6-microblaze.git] / kernel / acct.c
index 11ff4a5..b0c5b3a 100644 (file)
@@ -40,7 +40,7 @@
  *  is one more bug... 10/11/98, AV.
  *
  *     Oh, fsck... Oopsable SMP race in do_process_acct() - we must hold
- * ->mmap_sem to walk the vma list of current->mm. Nasty, since it leaks
+ * ->mmap_lock to walk the vma list of current->mm. Nasty, since it leaks
  * a struct file opened for write. Fixed. 2/6/2000, AV.
  */
 
@@ -541,13 +541,13 @@ void acct_collect(long exitcode, int group_dead)
        if (group_dead && current->mm) {
                struct vm_area_struct *vma;
 
-               down_read(&current->mm->mmap_sem);
+               mmap_read_lock(current->mm);
                vma = current->mm->mmap;
                while (vma) {
                        vsize += vma->vm_end - vma->vm_start;
                        vma = vma->vm_next;
                }
-               up_read(&current->mm->mmap_sem);
+               mmap_read_unlock(current->mm);
        }
 
        spin_lock_irq(&current->sighand->siglock);