]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/ncpfs/mmap.c
Merge branch 'for_3.4/fixes/pm' of git://git.kernel.org/pub/scm/linux/kernel/git...
[mv-sheeva.git] / fs / ncpfs / mmap.c
index a7c07b44b100b499593fb1ef7c6a24e1b9a3c15d..be20a7e171a0f18ebe24d32d0ebed2b4d71a6040 100644 (file)
@@ -16,9 +16,9 @@
 #include <linux/mman.h>
 #include <linux/string.h>
 #include <linux/fcntl.h>
+#include <linux/memcontrol.h>
 
 #include <asm/uaccess.h>
-#include <asm/system.h>
 
 #include "ncp_fs.h"
 
@@ -92,6 +92,7 @@ static int ncp_file_mmap_fault(struct vm_area_struct *area,
         * -- wli
         */
        count_vm_event(PGMAJFAULT);
+       mem_cgroup_count_vm_event(area->vm_mm, PGMAJFAULT);
        return VM_FAULT_MAJOR;
 }