| /linux/mm/ |
| H A D | vma.c | 94 if (vma->vm_file != vmg->file) in is_mergeable_vma() 166 vp->file = vma->vm_file; in init_multi_vma_prep() 168 vp->mapping = vma->vm_file->f_mapping; in init_multi_vma_prep() 290 if (vp->insert && vp->insert->vm_file) { in vma_prepare() 298 vp->insert->vm_file->f_mapping); in vma_prepare() 459 if (vma->vm_file) in remove_vma() 460 fput(vma->vm_file); in remove_vma() 532 if (new->vm_file) in __split_vma() 533 get_file(new->vm_file); in __split_vma() 1733 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 | 189 .file = vma_->vm_file, \ 241 if (desc->vm_file != vma->vm_file) in set_vma_from_desc() 242 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 | 286 return subpool_inode(file_inode(vma->vm_file)); in subpool_vma() 1184 struct address_space *mapping = vma->vm_file->f_mapping; in vma_resv_map() 4761 i_mmap_assert_write_locked(vma->vm_file->f_mapping); in hugetlb_split() 5092 struct address_space *mapping = vma->vm_file->f_mapping; in move_hugetlb_page_tables() 5326 if (!vma->vm_file) /* hugetlbfs_file_mmap error */ in __hugetlb_zap_begin() 5331 if (vma->vm_file) in __hugetlb_zap_begin() 5332 i_mmap_lock_write(vma->vm_file->f_mapping); in __hugetlb_zap_begin() 5340 if (!vma->vm_file) /* hugetlbfs_file_mmap error */ in __hugetlb_zap_end() 5358 if (vma->vm_file) in __hugetlb_zap_end() 5359 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() 716 if (vma->vm_file) { in do_procmap_query() 717 const struct inode *inode = file_user_inode(vma->vm_file); in do_procmap_query() 985 mss->swap += shmem_partial_swap_usage(walk->vma->vm_file->f_mapping, in smaps_pte_hole() 1285 if (vma->vm_file && shmem_mapping(vma->vm_file->f_mapping)) { in smap_gather_stats() 1742 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/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/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/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/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 = vfs_mmap(vma->vm_file, vma); in coda_file_mmap()
|
| /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/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/security/integrity/ima/ |
| H A D | ima_main.c | 537 if (!(ima_policy_flag & IMA_APPRAISE) || !vma->vm_file || in ima_file_mprotect() 542 inode = file_inode(vma->vm_file); in ima_file_mprotect() 543 action = ima_get_action(file_mnt_idmap(vma->vm_file), inode, in ima_file_mprotect() 546 action |= ima_get_action(file_mnt_idmap(vma->vm_file), inode, in ima_file_mprotect() 558 file = vma->vm_file; in ima_file_mprotect()
|
| /linux/fs/ext2/ |
| H A D | file.c | 95 struct inode *inode = file_inode(vmf->vma->vm_file); in ext2_dax_fault() 102 file_update_time(vmf->vma->vm_file); in ext2_dax_fault()
|
| /linux/fs/afs/ |
| H A D | file.c | 512 afs_add_open_mmap(AFS_FS_I(file_inode(vma->vm_file))); in afs_vm_open() 517 afs_drop_open_mmap(AFS_FS_I(file_inode(vma->vm_file))); in afs_vm_close() 522 struct afs_vnode *vnode = AFS_FS_I(file_inode(vmf->vma->vm_file)); in afs_vm_map_pages()
|