Home
last modified time | relevance | path

Searched refs:vm_file (Results 1 – 25 of 112) sorted by relevance

12345

/linux/mm/
A Dnommu.c524 if (region->vm_file) in __put_nommu_region()
564 if (vma->vm_file) { in add_vma_to_mm()
633 if (vma->vm_file) { in delete_vma_from_mm()
656 if (vma->vm_file) in delete_vma()
657 fput(vma->vm_file); in delete_vma()
1017 if (vma->vm_file) { in do_mmap_private()
1225 if (!vma->vm_file && in do_mmap()
1253 if (region->vm_file) in do_mmap()
1256 if (vma->vm_file) in do_mmap()
1347 if (vma->vm_file) in split_vma()
[all …]
A Dmincore.c77 if (vma->vm_file) { in __mincore_unmapped_range()
82 vec[i] = mincore_page(vma->vm_file->f_mapping, pgoff); in __mincore_unmapped_range()
161 if (!vma->vm_file) in can_do_mincore()
170 file_inode(vma->vm_file)) || in can_do_mincore()
171 file_permission(vma->vm_file, MAY_WRITE) == 0; in can_do_mincore()
A Dmmap.c185 if (vma->vm_file) in remove_vma()
186 fput(vma->vm_file); in remove_vma()
692 if (vma->vm_file) { in vma_link()
1265 a->vm_file == b->vm_file && in anon_vma_compatible()
1695 return vma->vm_file && vma->vm_file->f_mapping && in vma_wants_writenotify()
2732 if (new->vm_file) in __split_vma()
2751 if (new->vm_file) in __split_vma()
2980 if (next->vm_file != vma->vm_file) in SYSCALL_DEFINE5()
3593 if (vma->vm_file && vma->vm_file->f_mapping && in mm_take_all_locks()
3601 if (vma->vm_file && vma->vm_file->f_mapping && in mm_take_all_locks()
[all …]
A Duserfaultfd.c86 inode = dst_vma->vm_file->f_inode; in mfill_atomic_install_pte()
194 if (dst_vma->vm_file) { in mfill_zeropage_pte()
196 inode = dst_vma->vm_file->f_inode; in mfill_zeropage_pte()
222 struct inode *inode = file_inode(dst_vma->vm_file); in mcontinue_atomic_pte()
354 mapping = dst_vma->vm_file->f_mapping; in __mcopy_atomic_hugetlb()
A Dmadvise.c100 if (vma->vm_file || vma->vm_flags & VM_SHARED) { in madvise_behavior()
140 vma->vm_file, pgoff, vma_policy(vma), in madvise_behavior()
265 struct file *file = vma->vm_file; in madvise_willneed()
536 if (!vma->vm_file) in can_do_pageout()
545 file_inode(vma->vm_file)) || in can_do_pageout()
546 file_permission(vma->vm_file, MAY_WRITE) == 0; in can_do_pageout()
902 f = vma->vm_file; in madvise_remove()
A Dmremap.c105 if (vma->vm_file) in take_rmap_locks()
106 i_mmap_lock_write(vma->vm_file->f_mapping); in take_rmap_locks()
115 if (vma->vm_file) in drop_rmap_locks()
116 i_mmap_unlock_write(vma->vm_file->f_mapping); in drop_rmap_locks()
852 ret = get_unmapped_area(vma->vm_file, new_addr, new_len, vma->vm_pgoff + in mremap_to()
1050 new_addr = get_unmapped_area(vma->vm_file, 0, new_len, in SYSCALL_DEFINE5()
A Dsecretmem.c52 struct address_space *mapping = vmf->vma->vm_file->f_mapping; in secretmem_fault()
53 struct inode *inode = file_inode(vmf->vma->vm_file); in secretmem_fault()
A Dkhugepaged.c448 if (vma->vm_file && !IS_ALIGNED((vma->vm_start >> PAGE_SHIFT) - in hugepage_vma_check()
453 if (shmem_file(vma->vm_file)) in hugepage_vma_check()
461 if (IS_ENABLED(CONFIG_READ_ONLY_THP_FOR_FS) && vma->vm_file && in hugepage_vma_check()
463 struct inode *inode = vma->vm_file->f_inode; in hugepage_vma_check()
1444 if (!vma || !vma->vm_file || in collapse_pte_mapped_thp()
1457 hpage = find_lock_page(vma->vm_file->f_mapping, in collapse_pte_mapped_thp()
2135 if (shmem_file(vma->vm_file) && !shmem_huge_enabled(vma)) in khugepaged_scan_mm_slot()
2147 if (IS_ENABLED(CONFIG_SHMEM) && vma->vm_file) { in khugepaged_scan_mm_slot()
2148 struct file *file = get_file(vma->vm_file); in khugepaged_scan_mm_slot()
/linux/arch/powerpc/mm/book3s64/
A Dradix_hugetlbpage.c13 struct hstate *hstate = hstate_file(vma->vm_file); in radix__flush_hugetlb_page()
22 struct hstate *hstate = hstate_file(vma->vm_file); in radix__local_flush_hugetlb_page()
32 struct hstate *hstate = hstate_file(vma->vm_file); in radix__flush_hugetlb_tlb_range()
/linux/fs/ocfs2/
A Dmmap.c41 trace_ocfs2_fault(OCFS2_I(vma->vm_file->f_mapping->host)->ip_blkno, in ocfs2_fault()
116 struct inode *inode = file_inode(vmf->vma->vm_file); in ocfs2_page_mkwrite()
144 ret = __ocfs2_page_mkwrite(vmf->vma->vm_file, di_bh, page); in ocfs2_page_mkwrite()
/linux/drivers/video/fbdev/core/
A Dfb_defio.c56 if (vmf->vma->vm_file) in fb_deferred_io_fault()
57 page->mapping = vmf->vma->vm_file->f_mapping; in fb_deferred_io_fault()
106 file_update_time(vmf->vma->vm_file); in fb_deferred_io_mkwrite()
/linux/drivers/gpu/drm/
A Ddrm_vm.c113 struct drm_file *priv = vma->vm_file->private_data; in drm_vm_fault()
232 struct drm_file *priv = vma->vm_file->private_data; in drm_vm_shm_close()
302 struct drm_file *priv = vma->vm_file->private_data; in drm_vm_dma_fault()
338 struct drm_file *priv = vma->vm_file->private_data; in drm_vm_sg_fault()
407 struct drm_file *priv = vma->vm_file->private_data; in drm_vm_open()
442 struct drm_file *priv = vma->vm_file->private_data; in drm_vm_close()
/linux/fs/proc/
A Dnommu.c40 file = region->vm_file; in nommu_region_show()
43 struct inode *inode = file_inode(region->vm_file); in nommu_region_show()
/linux/drivers/infiniband/core/
A Dib_core_uverbs.c34 struct ib_uverbs_file *ufile = vma->vm_file->private_data; in rdma_umap_priv_init()
81 if (WARN_ON(!vma->vm_file || in rdma_user_mmap_io()
82 vma->vm_file->private_data != ufile)) in rdma_user_mmap_io()
/linux/fs/kernfs/
A Dfile.c316 struct file *file = vma->vm_file; in kernfs_vma_open()
333 struct file *file = vmf->vma->vm_file; in kernfs_vma_fault()
353 struct file *file = vmf->vma->vm_file; in kernfs_vma_page_mkwrite()
376 struct file *file = vma->vm_file; in kernfs_vma_access()
398 struct file *file = vma->vm_file; in kernfs_vma_set_policy()
419 struct file *file = vma->vm_file; in kernfs_vma_get_policy()
482 if (vma->vm_file != file) in kernfs_fop_mmap()
/linux/fs/nilfs2/
A Dfile.c49 struct inode *inode = file_inode(vma->vm_file); in nilfs_page_mkwrite()
98 file_update_time(vma->vm_file); in nilfs_page_mkwrite()
/linux/fs/coda/
A Dfile.c140 if (WARN_ON(coda_file != vma->vm_file)) in coda_file_mmap()
175 vma->vm_file = get_file(host_file); in coda_file_mmap()
176 ret = call_mmap(vma->vm_file, vma); in coda_file_mmap()
/linux/lib/
A Dbuildid.c135 if (!vma->vm_file) in build_id_parse()
138 page = find_get_page(vma->vm_file->f_mapping, 0); in build_id_parse()
/linux/fs/ext2/
A Dfile.c93 struct inode *inode = file_inode(vmf->vma->vm_file); in ext2_dax_fault()
100 file_update_time(vmf->vma->vm_file); in ext2_dax_fault()
/linux/security/integrity/ima/
A Dima_main.c434 struct file *file = vma->vm_file; in ima_file_mprotect()
445 if (!(ima_policy_flag & IMA_APPRAISE) || !vma->vm_file || in ima_file_mprotect()
450 inode = file_inode(vma->vm_file); in ima_file_mprotect()
451 action = ima_get_action(file_mnt_user_ns(vma->vm_file), inode, in ima_file_mprotect()
462 file = vma->vm_file; in ima_file_mprotect()
/linux/arch/arc/kernel/
A Dtroubleshoot.c95 if (vma->vm_file) { in show_faulting_vma()
96 nm = file_path(vma->vm_file, buf, ARC_PATH_MAX-1); in show_faulting_vma()
/linux/kernel/events/
A Duprobes.c128 return vma->vm_file && (vma->vm_flags & flags) == VM_MAYEXEC; in valid_vma()
349 vma->vm_file && in valid_ref_ctr_vma()
350 file_inode(vma->vm_file) == uprobe->inode && in valid_ref_ctr_vma()
530 orig_page = find_get_page(vma->vm_file->f_inode->i_mapping, in uprobe_write_opcode()
903 ret = prepare_uprobe(uprobe, vma->vm_file, mm, vaddr); in install_breakpoint()
1060 file_inode(vma->vm_file) != uprobe->inode) in register_for_each_vma()
1249 file_inode(vma->vm_file) != uprobe->inode) in unapply_uprobe()
1371 if (vma->vm_file && in uprobe_mmap()
1379 inode = file_inode(vma->vm_file); in uprobe_mmap()
1410 inode = file_inode(vma->vm_file); in vma_has_uprobes()
[all …]
/linux/ipc/
A Dshm.c280 struct file *file = vma->vm_file; in __shm_open()
364 struct file *file = vma->vm_file; in shm_close()
520 struct file *file = vmf->vma->vm_file; in shm_fault()
528 struct file *file = vma->vm_file; in shm_may_split()
539 struct file *file = vma->vm_file; in shm_pagesize()
551 struct file *file = vma->vm_file; in shm_set_policy()
563 struct file *file = vma->vm_file; in shm_get_policy()
1774 file = vma->vm_file; in ksys_shmdt()
1775 size = i_size_read(file_inode(vma->vm_file)); in ksys_shmdt()
1802 (vma->vm_file == file)) in ksys_shmdt()
/linux/fs/afs/
A Dfile.c559 afs_add_open_mmap(AFS_FS_I(file_inode(vma->vm_file))); in afs_vm_open()
564 afs_drop_open_mmap(AFS_FS_I(file_inode(vma->vm_file))); in afs_vm_close()
569 struct afs_vnode *vnode = AFS_FS_I(file_inode(vmf->vma->vm_file)); in afs_vm_map_pages()
570 struct afs_file *af = vmf->vma->vm_file->private_data; in afs_vm_map_pages()
/linux/drivers/dax/
A Ddevice.c198 struct file *filp = vmf->vma->vm_file; in dev_dax_huge_fault()
261 struct file *filp = vma->vm_file; in dev_dax_may_split()
271 struct file *filp = vma->vm_file; in dev_dax_pagesize()

Completed in 66 milliseconds

12345