]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/ncpfs/mmap.c
sched/headers: Prepare to remove <linux/cred.h> inclusion from <linux/sched.h>
[mirror_ubuntu-artful-kernel.git] / fs / ncpfs / mmap.c
index 39f57bef85318e343857e23452f60c478b804005..0c3905e0542e8902f5d988a0fe89491a378cbe51 100644 (file)
  * XXX: how are we excluding truncate/invalidate here? Maybe need to lock
  * page?
  */
-static int ncp_file_mmap_fault(struct vm_area_struct *area,
-                                       struct vm_fault *vmf)
+static int ncp_file_mmap_fault(struct vm_fault *vmf)
 {
-       struct inode *inode = file_inode(area->vm_file);
+       struct inode *inode = file_inode(vmf->vma->vm_file);
        char *pg_addr;
        unsigned int already_read;
        unsigned int count;
@@ -90,7 +89,7 @@ static int ncp_file_mmap_fault(struct vm_area_struct *area,
         * -- nyc
         */
        count_vm_event(PGMAJFAULT);
-       mem_cgroup_count_vm_event(area->vm_mm, PGMAJFAULT);
+       mem_cgroup_count_vm_event(vmf->vma->vm_mm, PGMAJFAULT);
        return VM_FAULT_MAJOR;
 }