Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / arch / powerpc / kernel / vdso.c
index a6042f7..256faa7 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/elf.h>
 #include <linux/security.h>
 #include <linux/bootmem.h>
+#include <linux/vs_memory.h>
 
 #include <asm/pgtable.h>
 #include <asm/system.h>
@@ -294,7 +295,7 @@ int arch_setup_additional_pages(struct linux_binprm *bprm,
                kmem_cache_free(vm_area_cachep, vma);
                return -ENOMEM;
        }
-       mm->total_vm += (vma->vm_end - vma->vm_start) >> PAGE_SHIFT;
+       vx_vmpages_add(mm, (vma->vm_end - vma->vm_start) >> PAGE_SHIFT);
        up_write(&mm->mmap_sem);
 
        return 0;