* take an explicit file pointer.
*/
lower_vma.vm_file = lower_file;
+ vmf->vma = &lower_vma; /* override vma temporarily */
err = lower_vm_ops->fault(vmf);
+ vmf->vma = vma; /* restore vma*/
return err;
}
* ->page_mkwrite to take an explicit file pointer.
*/
lower_vma.vm_file = lower_file;
+ vmf->vma = &lower_vma; /* override vma temporarily */
err = lower_vm_ops->page_mkwrite(vmf);
+ vmf->vma = vma; /* restore vma */
out:
return err;
}