| /linux/mm/ |
| H A D | vma.c | 94 if (vma->vm_file != vmg->file) in is_mergeable_vma() 174 vp->file = vma->vm_file; in init_multi_vma_prep() 176 vp->mapping = vma->vm_file->f_mapping; in init_multi_vma_prep() 298 if (vp->insert && vp->insert->vm_file) { in vma_prepare() 306 vp->insert->vm_file->f_mapping); in vma_prepare() 467 if (vma->vm_file) in remove_vma() 468 fput(vma->vm_file); in remove_vma() 537 if (new->vm_file) in __split_vma() 538 get_file(new->vm_file); in __split_vma() 1779 mapping = vb->vmas[0]->vm_file->f_mapping; in unlink_file_vma_batch_process() [all …]
|
| H A D | nommu.c | 540 if (region->vm_file) in __put_nommu_region() 541 fput(region->vm_file); in __put_nommu_region() 567 if (vma->vm_file) { in setup_vma_to_mm() 568 struct address_space *mapping = vma->vm_file->f_mapping; in setup_vma_to_mm() 582 if (vma->vm_file) { in cleanup_vma_from_mm() 584 mapping = vma->vm_file->f_mapping; in cleanup_vma_from_mm() 619 if (vma->vm_file) in delete_vma() 620 fput(vma->vm_file); in delete_vma() 897 ret = mmap_file(vma->vm_file, vma); in do_mmap_shared_file() 930 ret = mmap_file(vma->vm_file, vma); in do_mmap_private() [all …]
|
| H A D | mincore.c | 141 if (vma->vm_file) { in __mincore_unmapped_range() 146 vec[i] = mincore_page(vma->vm_file->f_mapping, pgoff); in __mincore_unmapped_range() 222 if (!vma->vm_file) in can_do_mincore() 231 file_inode(vma->vm_file)) || in can_do_mincore() 232 file_permission(vma->vm_file, MAY_WRITE) == 0; in can_do_mincore()
|
| H A D | vma_init.c | 50 dest->vm_file = src->vm_file; in vm_area_init_from() 129 ASSERT_EXCLUSIVE_WRITER(orig->vm_file); in vm_area_dup()
|
| H A D | vma.h | 258 .file = vma_->vm_file, \ 310 if (desc->vm_file != vma->vm_file) in set_vma_from_desc() 311 vma_set_file(vma, desc->vm_file); in set_vma_from_desc()
|
| 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()
|
| H A D | hugetlb.c | 276 return subpool_inode(file_inode(vma->vm_file)); in subpool_vma() 1175 struct address_space *mapping = vma->vm_file->f_mapping; in vma_resv_map() 4782 i_mmap_assert_write_locked(vma->vm_file->f_mapping); in hugetlb_split() 5113 struct address_space *mapping = vma->vm_file->f_mapping; in move_hugetlb_page_tables() 5331 if (!vma->vm_file) /* hugetlbfs_file_mmap error */ in __hugetlb_zap_begin() 5336 if (vma->vm_file) in __hugetlb_zap_begin() 5337 i_mmap_lock_write(vma->vm_file->f_mapping); in __hugetlb_zap_begin() 5345 if (!vma->vm_file) /* hugetlbfs_file_mmap error */ in __hugetlb_zap_end() 5363 if (vma->vm_file) in __hugetlb_zap_end() 5364 i_mmap_unlock_write(vma->vm_file->f_mapping); in __hugetlb_zap_end() [all …]
|
| H A D | mremap.c | 145 if (vma->vm_file) in take_rmap_locks() 146 i_mmap_lock_write(vma->vm_file->f_mapping); in take_rmap_locks() 155 if (vma->vm_file) in drop_rmap_locks() 156 i_mmap_unlock_write(vma->vm_file->f_mapping); in drop_rmap_locks() 961 res = get_unmapped_area(vma->vm_file, new_addr, vrm->new_len, pgoff, in vrm_set_new_addr() 1629 struct file *file = vma->vm_file; in vma_multi_allowed()
|
| /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, folio); 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_shortname.string); in check_vma()
|
| /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 | 396 if (vma->vm_file) { in get_vma_name() 405 *path = file_user_path(vma->vm_file); in get_vma_name() 473 if (vma->vm_file) { in show_map_vma() 474 const struct inode *inode = file_user_inode(vma->vm_file); in show_map_vma() 618 if ((flags & PROCMAP_QUERY_FILE_BACKED_VMA) && !vma->vm_file) in query_matching_vma() 659 struct file *vm_file = NULL; in do_procmap_query() local 717 if (vma->vm_file) { in do_procmap_query() 718 const struct inode *inode = file_user_inode(vma->vm_file); in do_procmap_query() 764 if (karg.build_id_size && vma->vm_file) in do_procmap_query() 765 vm_file = get_file(vma->vm_file); in do_procmap_query() [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/lib/ |
| H A D | buildid.c | 331 if (!vma->vm_file) in build_id_parse_nofault() 334 return __build_id_parse(vma->vm_file, build_id, size, false /* !may_fault */); in build_id_parse_nofault() 350 if (!vma->vm_file) in build_id_parse() 353 return __build_id_parse(vma->vm_file, build_id, size, true /* may_fault */); in build_id_parse()
|
| /linux/drivers/dax/ |
| H A D | device.c | 57 vma->vm_file, func); in check_vma() 87 struct file *filp = vmf->vma->vm_file; in dax_set_mapping() 242 struct file *filp = vmf->vma->vm_file; in dev_dax_huge_fault() 273 struct file *filp = vma->vm_file; in dev_dax_may_split() 283 struct file *filp = vma->vm_file; in dev_dax_pagesize()
|
| /linux/drivers/infiniband/core/ |
| H A D | ib_core_uverbs.c | 38 struct ib_uverbs_file *ufile = vma->vm_file->private_data; in rdma_umap_priv_init() 85 if (WARN_ON(!vma->vm_file || in rdma_user_mmap_io() 86 vma->vm_file->private_data != ufile)) in rdma_user_mmap_io()
|
| /linux/kernel/events/ |
| H A D | uprobes.c | 142 return vma->vm_file && (vma->vm_flags & flags) == VM_MAYEXEC; in valid_vma() 285 vma->vm_file && in valid_ref_ctr_vma() 286 file_inode(vma->vm_file) == uprobe->inode && in valid_ref_ctr_vma() 387 struct folio *orig_folio = filemap_get_folio(vma->vm_file->f_mapping, in orig_page_is_identical() 1158 ret = prepare_uprobe(uprobe, vma->vm_file, mm, vaddr); in install_breakpoint() 1305 file_inode(vma->vm_file) != uprobe->inode) in register_for_each_vma() 1482 file_inode(vma->vm_file) != uprobe->inode) in unapply_uprobe() 1606 if (vma->vm_file && in uprobe_mmap() 1614 inode = file_inode(vma->vm_file); in uprobe_mmap() 1645 inode = file_inode(vma->vm_file); in vma_has_uprobes() [all …]
|
| /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 = vfs_mmap(vma->vm_file, vma); in coda_file_mmap()
|
| /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/ipc/ |
| H A D | shm.c | 306 struct file *file = vma->vm_file; in shm_open() 400 struct file *file = vma->vm_file; in shm_close() 542 struct file *file = vmf->vma->vm_file; in shm_fault() 550 struct file *file = vma->vm_file; in shm_may_split() 561 struct file *file = vma->vm_file; in shm_pagesize() 573 struct shm_file_data *sfd = shm_file_data(vma->vm_file); in shm_set_policy() 584 struct shm_file_data *sfd = shm_file_data(vma->vm_file); in shm_get_policy() 1784 file = vma->vm_file; in ksys_shmdt() 1785 size = i_size_read(file_inode(vma->vm_file)); in ksys_shmdt() 1810 (vma->vm_file == file)) { in ksys_shmdt()
|
| /linux/drivers/accel/amdxdna/ |
| H A D | amdxdna_gem.c | 170 if (is_import_bo(mapp->abo) && vma->vm_file && vma->vm_file->f_mapping) in amdxdna_umap_release() 171 mapping_clear_unevictable(vma->vm_file->f_mapping); in amdxdna_umap_release() 240 if (is_import_bo(abo) && vma->vm_file && vma->vm_file->f_mapping) in amdxdna_hmm_register() 241 mapping_set_unevictable(vma->vm_file->f_mapping); in amdxdna_hmm_register()
|
| /linux/security/integrity/ima/ |
| H A D | ima_main.c | 540 if (!(ima_policy_flag & IMA_APPRAISE) || !vma->vm_file || in ima_file_mprotect() 545 inode = file_inode(vma->vm_file); in ima_file_mprotect() 546 action = ima_get_action(file_mnt_idmap(vma->vm_file), inode, in ima_file_mprotect() 549 action |= ima_get_action(file_mnt_idmap(vma->vm_file), inode, in ima_file_mprotect() 561 file = vma->vm_file; in ima_file_mprotect()
|
| /linux/fs/kernfs/ |
| H A D | file.c | 372 struct file *file = vma->vm_file; in kernfs_vma_open() 389 struct file *file = vmf->vma->vm_file; in kernfs_vma_fault() 409 struct file *file = vmf->vma->vm_file; in kernfs_vma_page_mkwrite() 432 struct file *file = vma->vm_file; in kernfs_vma_access() 489 if (vma->vm_file != file) in kernfs_fop_mmap()
|
| /linux/drivers/video/fbdev/core/ |
| H A D | fb_defio.c | 136 if (!vmf->vma->vm_file) in fb_deferred_io_fault() 225 file_update_time(vmf->vma->vm_file); in fb_deferred_io_page_mkwrite()
|