]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/mlock.c
KVM: Wire up hypercall handlers to a central arch-independent location
[linux-2.6-omap-h63xx.git] / mm / mlock.c
index 4ae3a46ff7688a4d12d0022854120be978844242..3446b7ef731e6c419cc0cf2656829eeca6fea5a7 100644 (file)
@@ -5,6 +5,7 @@
  *  (C) Copyright 2002 Christoph Hellwig
  */
 
+#include <linux/capability.h>
 #include <linux/mman.h>
 #include <linux/mm.h>
 #include <linux/mempolicy.h>
@@ -64,7 +65,7 @@ success:
                        ret = make_pages_present(start, end);
        }
 
-       vma->vm_mm->locked_vm -= pages;
+       mm->locked_vm -= pages;
 out:
        if (ret == -ENOMEM)
                ret = -EAGAIN;