/linux-6.12.1/mm/ |
D | vma.c | 26 if (vma->vm_file != vmg->file) in is_mergeable_vma() 78 vp->file = vma->vm_file; in init_multi_vma_prep() 80 vp->mapping = vma->vm_file->f_mapping; in init_multi_vma_prep() 168 if (vp->insert && vp->insert->vm_file) { in vma_prepare() 176 vp->insert->vm_file->f_mapping); in vma_prepare() 330 if (vma->vm_file) in remove_vma() 331 fput(vma->vm_file); in remove_vma() 407 if (new->vm_file) in __split_vma() 408 get_file(new->vm_file); in __split_vma() 1531 mapping = vb->vmas[0]->vm_file->f_mapping; in unlink_file_vma_batch_process() [all …]
|
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 …]
|
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()
|
D | madvise.c | 161 if (!vma->vm_file || vma_is_anon_shmem(vma)) { in madvise_update_vma() 266 struct file *file = vma->vm_file; in madvise_willneed() 311 if (!vma->vm_file) in can_do_file_pageout() 320 file_inode(vma->vm_file)) || in can_do_file_pageout() 321 file_permission(vma->vm_file, MAY_WRITE) == 0; in can_do_file_pageout() 989 f = vma->vm_file; in madvise_remove() 1069 if (vma->vm_file || vma->vm_flags & VM_SHARED) in madvise_vma_behavior() 1300 if (vma->vm_file && !vma_is_anon_shmem(vma)) in madvise_vma_anon_name()
|
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() 949 ret = get_unmapped_area(vma->vm_file, new_addr, new_len, vma->vm_pgoff + in mremap_to() 1170 new_addr = get_unmapped_area(vma->vm_file, 0, new_len, in SYSCALL_DEFINE5()
|
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()
|
D | mmap.c | 1452 vma->vm_file = get_file(file); in __mmap_region() 1487 fput(vma->vm_file); in __mmap_region() 1535 file = vma->vm_file; in __mmap_region() 1570 fput(vma->vm_file); in __mmap_region() 1571 vma->vm_file = NULL; in __mmap_region() 1710 file = get_file(vma->vm_file); in SYSCALL_DEFINE5() 1737 if (vma->vm_file != file) in SYSCALL_DEFINE5() 1749 if (next->vm_file != vma->vm_file) in SYSCALL_DEFINE5() 1765 ret = do_mmap(vma->vm_file, start, size, in SYSCALL_DEFINE5()
|
/linux-6.12.1/arch/powerpc/mm/book3s64/ |
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-6.12.1/fs/ocfs2/ |
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-6.12.1/tools/testing/selftests/bpf/progs/ |
D | find_vma.c | 26 if (vma->vm_file) in check_vma() 28 vma->vm_file->f_path.dentry->d_iname); in check_vma()
|
D | bpf_iter_task_vmas.c | 37 file = vma->vm_file; in proc_maps()
|
/linux-6.12.1/fs/proc/ |
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()
|
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 …]
|
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-6.12.1/drivers/infiniband/core/ |
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-6.12.1/fs/nilfs2/ |
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-6.12.1/drivers/video/fbdev/core/ |
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-6.12.1/drivers/dax/ |
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-6.12.1/arch/arc/kernel/ |
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-6.12.1/fs/coda/ |
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-6.12.1/kernel/events/ |
D | uprobes.c | 135 return vma->vm_file && (vma->vm_flags & flags) == VM_MAYEXEC; in valid_vma() 351 vma->vm_file && in valid_ref_ctr_vma() 352 file_inode(vma->vm_file) == uprobe->inode && in valid_ref_ctr_vma() 531 orig_page = find_get_page(vma->vm_file->f_inode->i_mapping, in uprobe_write_opcode() 955 ret = prepare_uprobe(uprobe, vma->vm_file, mm, vaddr); in install_breakpoint() 1097 file_inode(vma->vm_file) != uprobe->inode) in register_for_each_vma() 1274 file_inode(vma->vm_file) != uprobe->inode) in unapply_uprobe() 1398 if (vma->vm_file && in uprobe_mmap() 1406 inode = file_inode(vma->vm_file); in uprobe_mmap() 1437 inode = file_inode(vma->vm_file); in vma_has_uprobes() [all …]
|
/linux-6.12.1/ipc/ |
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-6.12.1/fs/udf/ |
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-6.12.1/fs/kernfs/ |
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-6.12.1/security/integrity/ima/ |
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()
|