]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - mm/shmem.c
mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite to take only vmf
[karo-tx-linux.git] / mm / shmem.c
index 9c6d22ff44e26280505729463acaa96e8bf88d6a..f7f2330c6cb6f90e3de91e7265725bac04292c7c 100644 (file)
@@ -1908,8 +1908,9 @@ static int synchronous_wake_function(wait_queue_t *wait, unsigned mode, int sync
        return ret;
 }
 
-static int shmem_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
+static int shmem_fault(struct vm_fault *vmf)
 {
+       struct vm_area_struct *vma = vmf->vma;
        struct inode *inode = file_inode(vma->vm_file);
        gfp_t gfp = mapping_gfp_mask(inode->i_mapping);
        enum sgp_type sgp;