]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/ia64/kernel/perfmon.c
[PATCH] mm: vm_stat_account unshackled
[linux-2.6-omap-h63xx.git] / arch / ia64 / kernel / perfmon.c
index d71731ee5b61fc8ce322458d3ca4dc9012b48335..f7dfc107cb7bd6040eca8f4e7aa46b7531c4a443 100644 (file)
@@ -2352,7 +2352,8 @@ pfm_smpl_buffer_alloc(struct task_struct *task, pfm_context_t *ctx, unsigned lon
        insert_vm_struct(mm, vma);
 
        mm->total_vm  += size >> PAGE_SHIFT;
-       vm_stat_account(vma);
+       vm_stat_account(vma->vm_mm, vma->vm_flags, vma->vm_file,
+                                                       vma_pages(vma));
        up_write(&task->mm->mmap_sem);
 
        /*