| /linux/mm/ |
| 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 | vma.c | 119 if (vma->vm_file != vmg->file) in is_mergeable_vma() 199 vp->file = vma->vm_file; in init_multi_vma_prep() 201 vp->mapping = vma->vm_file->f_mapping; in init_multi_vma_prep() 347 if (vp->insert && vp->insert->vm_file) { in vma_prepare() 355 vp->insert->vm_file->f_mapping); in vma_prepare() 514 if (vma->vm_file) in remove_vma() 515 fput(vma->vm_file); in remove_vma() 584 if (new->vm_file) in __split_vma() 585 get_file(new->vm_file); in __split_vma() 1879 mapping = vb->vmas[0]->vm_file in unlink_file_vma_batch_process() [all...] |
| H A D | vma_init.c | 55 dest->vm_file = src->vm_file; in vm_area_init_from() 134 ASSERT_EXCLUSIVE_WRITER(orig->vm_file); in vm_area_dup()
|
| H A D | vma.h | 270 /* MAP_PRIVATE-/dev/zero is anon, non-NULL vm_file, but has file pgoff. */ in assert_sane_pgoff() 271 if (vma->vm_file) in assert_sane_pgoff() 349 .file = vma_->vm_file, \ 400 if (desc->vm_file != vma->vm_file) in compat_set_vma_from_desc() 401 vma_set_file(vma, desc->vm_file); in compat_set_vma_from_desc()
|
| H A D | secretmem.c | 112 struct address_space *mapping = vmf->vma->vm_file->f_mapping; in secretmem_fault() 113 struct inode *inode = file_inode(vmf->vma->vm_file); in secretmem_fault()
|
| 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() 969 res = get_unmapped_area(vma->vm_file, new_addr, vrm->new_len, pgoff, in vrm_set_new_addr() 1389 if (vma_is_anonymous(vma) && !vma->vm_file) in move_vma() 1754 struct file *file = vma->vm_file; in check_prep_vma()
|
| H A D | hugetlb.c | 286 return subpool_inode(file_inode(vma->vm_file)); in subpool_vma() 1142 struct address_space *mapping = vma->vm_file->f_mapping; in vma_resv_map() 4769 i_mmap_assert_write_locked(vma->vm_file->f_mapping); in hugetlb_split() 5148 struct address_space *mapping = vma->vm_file->f_mapping; in move_hugetlb_page_tables() 5225 i_mmap_assert_write_locked(vma->vm_file->f_mapping); in __unmap_hugepage_range() 5373 if (!vma->vm_file) /* hugetlbfs_file_mmap error */ in __hugetlb_zap_begin() 5378 if (vma->vm_file) in __hugetlb_zap_begin() 5379 i_mmap_lock_write(vma->vm_file->f_mapping); in __hugetlb_zap_begin() 5387 if (!vma->vm_file) /* hugetlbfs_file_mmap error */ in __hugetlb_zap_end() 5405 if (vma->vm_file) in __hugetlb_zap_end() [all …]
|
| H A D | madvise.c | 294 struct file *file = vma->vm_file; in madvise_willneed() 340 if (!vma->vm_file) in can_do_file_pageout() 348 return file_owner_or_capable(vma->vm_file) || in can_do_file_pageout() 349 file_permission(vma->vm_file, MAY_WRITE) == 0; in can_do_file_pageout() 1024 f = vma->vm_file; in madvise_remove() 1400 if (vma->vm_file || new_flags & VM_SHARED) in madvise_vma_behavior() 1433 if (vma->vm_file && !vma_is_anon_shmem(vma)) in madvise_vma_behavior()
|
| H A D | memory.c | 639 mapping = vma->vm_file ? vma->vm_file->f_mapping : NULL; in print_bad_page_map() 658 vma->vm_file, in print_bad_page_map() 660 vma->vm_file ? vma->vm_file->f_op->mmap : NULL, in print_bad_page_map() 661 vma->vm_file ? vma->vm_file->f_op->mmap_prepare : NULL, in print_bad_page_map() 2215 if (vma->vm_file && !reaping) in __zap_vma_range() 2227 if (!vma->vm_file) in __zap_vma_range() 3787 struct file *vm_file = vma->vm_file; in __get_fault_gfp_mask() local 3789 if (vm_file) in __get_fault_gfp_mask() 3790 return mapping_gfp_mask(vm_file->f_mapping) | __GFP_FS | __GFP_IO; in __get_fault_gfp_mask() 3812 if (vmf->vma->vm_file && in do_page_mkwrite() [all …]
|
| /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/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 | 429 if (vma->vm_file) { in get_vma_name() 438 *path = file_user_path(vma->vm_file); in get_vma_name() 506 if (vma->vm_file) { in show_map_vma() 507 const struct inode *inode = file_user_inode(vma->vm_file); in show_map_vma() 649 if ((flags & PROCMAP_QUERY_FILE_BACKED_VMA) && !vma->vm_file) in query_matching_vma() 690 struct file *vm_file = NULL; in do_procmap_query() local 748 if (vma->vm_file) { in do_procmap_query() 749 const struct inode *inode = file_user_inode(vma->vm_file); in do_procmap_query() 795 if (karg.build_id_size && vma->vm_file) in do_procmap_query() 796 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/kernel/events/ |
| H A D | uprobes.c | 142 return vma->vm_file && (vma->vm_flags & flags) == VM_MAYEXEC; in valid_vma() 287 vma->vm_file && in valid_ref_ctr_vma() 288 file_inode(vma->vm_file) == uprobe->inode && in valid_ref_ctr_vma() 389 struct folio *orig_folio = filemap_get_folio(vma->vm_file->f_mapping, in orig_page_is_identical() 1161 ret = prepare_uprobe(uprobe, vma->vm_file, mm, vaddr); in install_breakpoint() 1308 file_inode(vma->vm_file) != uprobe->inode) in register_for_each_vma() 1485 file_inode(vma->vm_file) != uprobe->inode) in unapply_uprobe() 1609 if (vma->vm_file && in uprobe_mmap() 1617 inode = file_inode(vma->vm_file); in uprobe_mmap() 1648 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/kernel/bpf/ |
| H A D | task_iter.c | 922 kit->data->snapshot.vm_file = NULL; in bpf_iter_task_vma_new() 986 if (snap->vm_file) { in bpf_iter_task_vma_snapshot_reset() 987 fput(snap->vm_file); in bpf_iter_task_vma_snapshot_reset() 988 snap->vm_file = NULL; in bpf_iter_task_vma_snapshot_reset() 1017 if (snap->vm_file) in bpf_iter_task_vma_next() 1018 get_file(snap->vm_file); in bpf_iter_task_vma_next()
|
| /linux/security/integrity/ima/ |
| H A D | ima_main.c | 558 if (!(ima_policy_flag & IMA_APPRAISE) || !vma->vm_file || in ima_file_mprotect() 563 inode = file_inode(vma->vm_file); in ima_file_mprotect() 564 action = ima_get_action(file_mnt_idmap(vma->vm_file), inode, in ima_file_mprotect() 567 action |= ima_get_action(file_mnt_idmap(vma->vm_file), inode, in ima_file_mprotect() 579 file = vma->vm_file; in ima_file_mprotect()
|
| /linux/tools/testing/vma/include/ |
| H A D | dup.h | 527 struct file *vm_file; member 598 struct file * vm_file; /* File we map to (can be NULL). */ member 1314 desc->vm_file = vma->vm_file; in compat_set_desc_from_vma() 1577 swap(vma->vm_file, file); in vma_set_file() 1642 if (vma_is_anonymous(vma) && !vma->vm_file) in linear_anon_page_index()
|
| /linux/fs/afs/ |
| H A D | file.c | 535 struct file *file = vma->vm_file; in afs_vm_open() 543 struct file *file = vma->vm_file; in afs_vm_close() 551 struct file *file = vmf->vma->vm_file; in afs_vm_map_pages()
|
| /linux/arch/powerpc/mm/ |
| H A D | cacheflush.c | 206 if (!vma->vm_file && ((vma->vm_flags & VM_EXEC) == 0)) in copy_user_page()
|
| /linux/fs/xfs/ |
| H A D | xfs_file.c | 1971 struct xfs_inode *ip = XFS_I(file_inode(vmf->vma->vm_file)); in xfs_dax_read_fault() 1999 struct inode *inode = file_inode(vmf->vma->vm_file); in __xfs_write_fault() 2007 file_update_time(vmf->vma->vm_file); in __xfs_write_fault() 2037 struct xfs_inode *ip = XFS_I(file_inode(vmf->vma->vm_file)); in xfs_write_fault_zoned() 2063 if (xfs_is_zoned_inode(XFS_I(file_inode(vmf->vma->vm_file)))) in xfs_write_fault() 2080 struct inode *inode = file_inode(vmf->vma->vm_file); in xfs_filemap_fault() 2098 if (!IS_DAX(file_inode(vmf->vma->vm_file))) in xfs_filemap_huge_fault()
|
| /linux/arch/powerpc/mm/nohash/ |
| H A D | e500_hugetlbpage.c | 189 struct hstate *hstate = hstate_file(vma->vm_file); in flush_hugetlb_page()
|