Lines Matching refs:vm_file
77 if (vma->vm_file != vmg->file) in is_mergeable_vma()
129 vp->file = vma->vm_file; in init_multi_vma_prep()
131 vp->mapping = vma->vm_file->f_mapping; in init_multi_vma_prep()
219 if (vp->insert && vp->insert->vm_file) { in vma_prepare()
227 vp->insert->vm_file->f_mapping); in vma_prepare()
381 if (vma->vm_file) in remove_vma()
382 fput(vma->vm_file); in remove_vma()
458 if (new->vm_file) in __split_vma()
459 get_file(new->vm_file); in __split_vma()
1622 mapping = vb->vmas[0]->vm_file->f_mapping; in unlink_file_vma_batch_process()
1625 VM_WARN_ON_ONCE(vb->vmas[i]->vm_file->f_mapping != mapping); in unlink_file_vma_batch_process()
1636 if (vma->vm_file == NULL) in unlink_file_vma_batch_add()
1639 if ((vb->count > 0 && vb->vmas[0]->vm_file != vma->vm_file) || in unlink_file_vma_batch_add()
1659 struct file *file = vma->vm_file; in unlink_file_vma()
1672 struct file *file = vma->vm_file; in vma_link_file()
1764 if (new_vma->vm_file) in copy_vma()
1765 get_file(new_vma->vm_file); in copy_vma()
1777 if (new_vma->vm_file) in copy_vma()
1778 fput(new_vma->vm_file); in copy_vma()
1806 a->vm_file == b->vm_file && in anon_vma_compatible()
1905 return vma->vm_file && vma->vm_file->f_mapping && in vma_fs_can_writeback()
1906 mapping_can_writeback(vma->vm_file->f_mapping); in vma_fs_can_writeback()
2074 if (vma->vm_file && vma->vm_file->f_mapping && in mm_take_all_locks()
2076 vm_lock_mapping(mm, vma->vm_file->f_mapping); in mm_take_all_locks()
2083 if (vma->vm_file && vma->vm_file->f_mapping && in mm_take_all_locks()
2085 vm_lock_mapping(mm, vma->vm_file->f_mapping); in mm_take_all_locks()
2157 if (vma->vm_file && vma->vm_file->f_mapping) in mm_drop_all_locks()
2158 vm_unlock_mapping(vma->vm_file->f_mapping); in mm_drop_all_locks()
2290 vma->vm_file = get_file(map->file); in __mmap_new_file_vma()
2291 error = mmap_file(vma->vm_file, vma); in __mmap_new_file_vma()
2293 fput(vma->vm_file); in __mmap_new_file_vma()
2294 vma->vm_file = NULL; in __mmap_new_file_vma()
2418 if (vma->vm_file) in __mmap_complete()