/linux/mm/ |
H A D | vma.c | 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() [all …]
|
H A D | nommu.c | 514 if (region->vm_file) in __put_nommu_region() 515 fput(region->vm_file); in __put_nommu_region() 541 if (vma->vm_file) { in setup_vma_to_mm() 542 struct address_space *mapping = vma->vm_file->f_mapping; in setup_vma_to_mm() 556 if (vma->vm_file) { in cleanup_vma_from_mm() 558 mapping = vma->vm_file->f_mapping; in cleanup_vma_from_mm() 593 if (vma->vm_file) in delete_vma() 594 fput(vma->vm_file); in delete_vma() 887 ret = mmap_file(vma->vm_file, vma); in do_mmap_shared_file() 920 ret = mmap_file(vma->vm_file, vma); in do_mmap_private() [all …]
|
H A D | mincore.c | 78 if (vma->vm_file) { in __mincore_unmapped_range() 83 vec[i] = mincore_page(vma->vm_file->f_mapping, pgoff); in __mincore_unmapped_range() 162 if (!vma->vm_file) in can_do_mincore() 171 file_inode(vma->vm_file)) || in can_do_mincore() 172 file_permission(vma->vm_file, MAY_WRITE) == 0; in can_do_mincore()
|
H A D | madvise.c | 169 if (!vma->vm_file || vma_is_anon_shmem(vma)) { 274 struct file *file = vma->vm_file; in madvise_willneed() 319 if (!vma->vm_file) in can_do_file_pageout() 328 file_inode(vma->vm_file)) || in madvise_folio_pte_batch() 329 file_permission(vma->vm_file, MAY_WRITE) == 0; in madvise_folio_pte_batch() 997 f = vma->vm_file; in madvise_remove() 1285 if (vma->vm_file || vma->vm_flags & VM_SHARED) in madvise_walk_vmas() 1523 if (vma->vm_file && !vma_is_anon_shmem(vma)) in SYSCALL_DEFINE5()
|
H A D | mremap.c | 107 if (vma->vm_file) in take_rmap_locks() 108 i_mmap_lock_write(vma->vm_file->f_mapping); in take_rmap_locks() 117 if (vma->vm_file) in drop_rmap_locks() 118 i_mmap_unlock_write(vma->vm_file->f_mapping); in drop_rmap_locks() 980 ret = get_unmapped_area(vma->vm_file, new_addr, new_len, vma->vm_pgoff + in mremap_to() 1196 new_addr = get_unmapped_area(vma->vm_file, 0, new_len, in SYSCALL_DEFINE5()
|
H A D | secretmem.c | 52 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()
|
/linux/arch/powerpc/mm/book3s64/ |
H A D | radix_hugetlbpage.c | 13 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/ |
H A D | mmap.c | 41 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/tools/testing/selftests/bpf/progs/ |
H A D | find_vma.c | 26 if (vma->vm_file) in check_vma() 28 vma->vm_file->f_path.dentry->d_iname); in check_vma()
|
H A D | bpf_iter_task_vmas.c | 37 file = vma->vm_file; in proc_maps()
|
/linux/fs/proc/ |
H A D | nommu.c | 39 file = region->vm_file; in nommu_region_show() 42 struct inode *inode = file_inode(region->vm_file); in nommu_region_show()
|
H A D | task_mmu.c | 258 if (vma->vm_file) { in get_vma_name() 267 *path = file_user_path(vma->vm_file); in get_vma_name() 335 if (vma->vm_file) { in show_map_vma() 336 const struct inode *inode = file_user_inode(vma->vm_file); in show_map_vma() 418 if ((flags & PROCMAP_QUERY_FILE_BACKED_VMA) && !vma->vm_file) in query_matching_vma() 517 if (vma->vm_file) { in do_procmap_query() 518 const struct inode *inode = file_user_inode(vma->vm_file); in do_procmap_query() 772 mss->swap += shmem_partial_swap_usage(walk->vma->vm_file->f_mapping, in smaps_pte_hole() 1066 if (vma->vm_file && shmem_mapping(vma->vm_file->f_mapping)) { in smap_gather_stats() 1523 if (cp->type == CLEAR_REFS_ANON && vma->vm_file) in clear_refs_test_walk() [all …]
|
H A D | task_nommu.c | 137 file = vma->vm_file; in nommu_vma_show() 140 struct inode *inode = file_inode(vma->vm_file); in nommu_vma_show()
|
/linux/drivers/infiniband/core/ |
H A D | ib_core_uverbs.c | 34 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/nilfs2/ |
H A D | file.c | 49 struct inode *inode = file_inode(vma->vm_file); in nilfs_page_mkwrite() 100 file_update_time(vma->vm_file); in nilfs_page_mkwrite()
|
/linux/drivers/video/fbdev/core/ |
H A D | fb_defio.c | 143 if (vmf->vma->vm_file) in fb_deferred_io_fault() 144 page->mapping = vmf->vma->vm_file->f_mapping; in fb_deferred_io_fault() 235 file_update_time(vmf->vma->vm_file); in fb_deferred_io_page_mkwrite()
|
/linux/drivers/dax/ |
H A D | device.c | 80 struct file *filp = vmf->vma->vm_file; in dax_set_mapping() 233 struct file *filp = vmf->vma->vm_file; in dev_dax_huge_fault() 264 struct file *filp = vma->vm_file; in dev_dax_may_split() 274 struct file *filp = vma->vm_file; in dev_dax_pagesize()
|
/linux/arch/arc/kernel/ |
H A D | troubleshoot.c | 95 if (vma->vm_file) { in show_faulting_vma() 97 nm = d_path(file_user_path(vma->vm_file), buf, in show_faulting_vma()
|
/linux/fs/coda/ |
H A D | file.c | 166 if (WARN_ON(coda_file != vma->vm_file)) in coda_file_mmap() 201 vma->vm_file = get_file(host_file); in coda_file_mmap() 202 ret = call_mmap(vma->vm_file, vma); in coda_file_mmap()
|
/linux/ipc/ |
H A D | shm.c | 304 struct file *file = vma->vm_file; in shm_open() 398 struct file *file = vma->vm_file; in shm_close() 537 struct file *file = vmf->vma->vm_file; in shm_fault() 545 struct file *file = vma->vm_file; in shm_may_split() 556 struct file *file = vma->vm_file; in shm_pagesize() 568 struct shm_file_data *sfd = shm_file_data(vma->vm_file); in shm_set_policy() 579 struct shm_file_data *sfd = shm_file_data(vma->vm_file); in shm_get_policy() 1779 file = vma->vm_file; in ksys_shmdt() 1780 size = i_size_read(file_inode(vma->vm_file)); in ksys_shmdt() 1805 (vma->vm_file == file)) { in ksys_shmdt()
|
/linux/fs/udf/ |
H A D | file.c | 40 struct inode *inode = file_inode(vma->vm_file); in udf_page_mkwrite() 49 file_update_time(vma->vm_file); in udf_page_mkwrite()
|
/linux/fs/kernfs/ |
H A D | file.c | 354 struct file *file = vma->vm_file; in kernfs_vma_open() 371 struct file *file = vmf->vma->vm_file; in kernfs_vma_fault() 391 struct file *file = vmf->vma->vm_file; in kernfs_vma_page_mkwrite() 414 struct file *file = vma->vm_file; in kernfs_vma_access() 471 if (vma->vm_file != file) in kernfs_fop_mmap()
|
/linux/security/integrity/ima/ |
H A D | ima_main.c | 497 if (!(ima_policy_flag & IMA_APPRAISE) || !vma->vm_file || in ima_file_mprotect() 502 inode = file_inode(vma->vm_file); in ima_file_mprotect() 503 action = ima_get_action(file_mnt_idmap(vma->vm_file), inode, in ima_file_mprotect() 506 action |= ima_get_action(file_mnt_idmap(vma->vm_file), inode, in ima_file_mprotect() 518 file = vma->vm_file; in ima_file_mprotect()
|
/linux/kernel/events/ |
H A D | uprobes.c | 140 return vma->vm_file && (vma->vm_flags & flags) == VM_MAYEXEC; in valid_vma() 356 vma->vm_file && in valid_ref_ctr_vma() 357 file_inode(vma->vm_file) == uprobe->inode && in valid_ref_ctr_vma() 536 orig_page = find_get_page(vma->vm_file->f_inode->i_mapping, in uprobe_write_opcode() 1123 ret = prepare_uprobe(uprobe, vma->vm_file, mm, vaddr); in install_breakpoint() 1265 file_inode(vma->vm_file) != uprobe->inode) in register_for_each_vma() 1442 file_inode(vma->vm_file) != uprobe->inode) in unapply_uprobe() 1566 if (vma->vm_file && in uprobe_mmap() 1574 inode = file_inode(vma->vm_file); in uprobe_mmap() 1605 inode = file_inode(vma->vm_file); in vma_has_uprobes() [all...] |
/linux/fs/afs/ |
H A D | file.c | 476 afs_add_open_mmap(AFS_FS_I(file_inode(vma->vm_file))); in afs_vm_open() 481 afs_drop_open_mmap(AFS_FS_I(file_inode(vma->vm_file))); in afs_vm_close() 486 struct afs_vnode *vnode = AFS_FS_I(file_inode(vmf->vma->vm_file)); in afs_vm_map_pages()
|