Lines Matching refs:vm_file
130 struct file *file = vma->vm_file;
148 if (vma->vm_file)
149 fput(vma->vm_file);
414 if (vma->vm_file) {
415 mapping = vma->vm_file->f_mapping;
447 vp->file = vma->vm_file;
449 vp->mapping = vma->vm_file->f_mapping;
479 if (vp->insert && vp->insert->vm_file) {
487 vp->insert->vm_file->f_mapping);
741 if (vma->vm_file != file)
1051 * They need to have the same vm_file, and the flags can only differ
1064 a->vm_file == b->vm_file &&
1495 return vma->vm_file && vma->vm_file->f_mapping &&
1496 mapping_can_writeback(vma->vm_file->f_mapping);
2406 if (new->vm_file)
2407 get_file(new->vm_file);
2798 vma->vm_file = get_file(file);
2819 vma->vm_file, vma->vm_pgoff, NULL,
2823 * ->mmap() can change vma->vm_file and fput
2824 * the original file. So fput the vma->vm_file
2829 fput(vma->vm_file);
2865 if (vma->vm_file) {
2866 i_mmap_lock_write(vma->vm_file->f_mapping);
2868 mapping_allow_writable(vma->vm_file->f_mapping);
2870 flush_dcache_mmap_lock(vma->vm_file->f_mapping);
2871 vma_interval_tree_insert(vma, &vma->vm_file->f_mapping->i_mmap);
2872 flush_dcache_mmap_unlock(vma->vm_file->f_mapping);
2873 i_mmap_unlock_write(vma->vm_file->f_mapping);
2886 file = vma->vm_file;
2922 if (file || vma->vm_file) {
2924 fput(vma->vm_file);
2925 vma->vm_file = NULL;
3019 if (next->vm_file != vma->vm_file)
3044 file = get_file(vma->vm_file);
3045 ret = do_mmap(vma->vm_file, start, size,
3293 * and into the inode's i_mmap tree. If vm_file is non-NULL
3362 vma->anon_vma, vma->vm_file, pgoff, vma_policy(vma),
3397 if (new_vma->vm_file)
3398 get_file(new_vma->vm_file);
3411 if (new_vma->vm_file)
3412 fput(new_vma->vm_file);
3729 if (vma->vm_file && vma->vm_file->f_mapping &&
3731 vm_lock_mapping(mm, vma->vm_file->f_mapping);
3738 if (vma->vm_file && vma->vm_file->f_mapping &&
3740 vm_lock_mapping(mm, vma->vm_file->f_mapping);
3812 if (vma->vm_file && vma->vm_file->f_mapping)
3813 vm_unlock_mapping(vma->vm_file->f_mapping);