Home
last modified time | relevance | path

Searched refs:VM_SHARED (Results 1 – 25 of 78) sorted by relevance

1234

/Linux-v5.10/mm/
Duserfaultfd.c212 int vm_alloc_shared = dst_vma->vm_flags & VM_SHARED; in __mcopy_atomic_hugetlb()
213 int vm_shared = dst_vma->vm_flags & VM_SHARED; in __mcopy_atomic_hugetlb()
263 vm_shared = dst_vma->vm_flags & VM_SHARED; in __mcopy_atomic_hugetlb()
435 if (!(dst_vma->vm_flags & VM_SHARED)) { in mfill_atomic_pte()
514 dst_vma->vm_flags & VM_SHARED)) in __mcopy_atomic()
541 if (!(dst_vma->vm_flags & VM_SHARED) && in __mcopy_atomic()
672 if (!dst_vma || (dst_vma->vm_flags & VM_SHARED)) in mwriteprotect_range()
Dmapping_dirty_helpers.c235 if ((vm_flags & (VM_SHARED | VM_MAYWRITE | VM_HUGETLB)) != in wp_clean_test_walk()
236 (VM_SHARED | VM_MAYWRITE)) in wp_clean_test_walk()
Dmmap.c112 (VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)]) | in vm_get_page_prot()
132 vm_flags &= ~VM_SHARED; in vma_set_page_prot()
147 if (vma->vm_flags & VM_SHARED) in __remove_shared_vm_struct()
667 if (vma->vm_flags & VM_SHARED) in __vma_link_file()
1525 vm_flags |= VM_SHARED | VM_MAYSHARE; in do_mmap()
1527 vm_flags &= ~(VM_MAYWRITE | VM_SHARED); in do_mmap()
1556 vm_flags |= VM_SHARED | VM_MAYSHARE; in do_mmap()
1684 if ((vm_flags & (VM_WRITE|VM_SHARED)) != ((VM_WRITE|VM_SHARED))) in vma_wants_writenotify()
1723 return (vm_flags & (VM_NORESERVE | VM_SHARED | VM_WRITE)) == VM_WRITE; in accountable_mapping()
1795 if (vm_flags & VM_SHARED) { in mmap_region()
[all …]
Dmsync.c89 (vma->vm_flags & VM_SHARED)) { in SYSCALL_DEFINE3()
Dmprotect.c68 if (prot_numa && !(vma->vm_flags & VM_SHARED) && in change_pte_range()
443 VM_SHARED|VM_NORESERVE))) { in mprotect_fixup()
494 if ((oldflags & (VM_WRITE | VM_SHARED | VM_LOCKED)) == VM_LOCKED && in mprotect_fixup()
Dinternal.h296 return (flags & (VM_SHARED | VM_MAYWRITE)) == VM_MAYWRITE; in is_cow_mapping()
327 return (flags & (VM_WRITE | VM_SHARED | VM_STACK)) == VM_WRITE; in is_data_mapping()
Dmadvise.c98 if (vma->vm_file || vma->vm_flags & VM_SHARED) { in madvise_behavior()
848 if ((vma->vm_flags & (VM_SHARED|VM_WRITE)) != (VM_SHARED|VM_WRITE)) in madvise_remove()
Dmemory.c887 if (vm_flags & VM_SHARED) in copy_present_pte()
2982 WARN_ON_ONCE(!(vmf->vma->vm_flags & VM_SHARED)); in finish_mkwrite_fault()
3091 if ((vma->vm_flags & (VM_WRITE|VM_SHARED)) == in do_wp_page()
3092 (VM_WRITE|VM_SHARED)) in do_wp_page()
3123 } else if (unlikely((vma->vm_flags & (VM_WRITE|VM_SHARED)) == in do_wp_page()
3124 (VM_WRITE|VM_SHARED))) { in do_wp_page()
3477 if (vma->vm_flags & VM_SHARED) in do_anonymous_page()
3818 if (write && !(vma->vm_flags & VM_SHARED)) { in alloc_set_pte()
3857 !(vmf->vma->vm_flags & VM_SHARED)) in finish_fault()
3866 if (!(vmf->vma->vm_flags & VM_SHARED)) in finish_fault()
[all …]
Dmremap.c493 if (!old_len && !(vma->vm_flags & (VM_SHARED | VM_MAYSHARE))) { in vma_to_resize()
499 vma->vm_flags & VM_SHARED)) in vma_to_resize()
/Linux-v5.10/include/trace/events/
Dfs_dax.h43 __entry->vm_flags & VM_SHARED ? "shared" : "private",
89 __entry->vm_flags & VM_SHARED ? "shared" : "private",
134 __entry->vm_flags & VM_SHARED ? "shared" : "private",
178 __entry->vm_flags & VM_SHARED ? "shared" : "private",
220 __entry->vm_flags & VM_SHARED ? "shared" : "private",
Dmmflags.h144 {VM_SHARED, "shared" }, \
/Linux-v5.10/drivers/infiniband/core/
Dib_core_uverbs.c74 if (!(vma->vm_flags & VM_SHARED)) in rdma_user_mmap_io()
166 if (!(vma->vm_flags & VM_SHARED)) in rdma_user_mmap_entry_get()
/Linux-v5.10/fs/
Dcoredump.c989 if ((vma->vm_flags & VM_SHARED) && FILTER(DAX_SHARED)) in vma_dump_size()
991 if (!(vma->vm_flags & VM_SHARED) && FILTER(DAX_PRIVATE)) in vma_dump_size()
998 if ((vma->vm_flags & VM_SHARED) && FILTER(HUGETLB_SHARED)) in vma_dump_size()
1000 if (!(vma->vm_flags & VM_SHARED) && FILTER(HUGETLB_PRIVATE)) in vma_dump_size()
1010 if (vma->vm_flags & VM_SHARED) { in vma_dump_size()
/Linux-v5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ttm_glue.c52 if ((vma->vm_flags & (VM_SHARED | VM_MAYWRITE)) != VM_MAYWRITE) in vmw_mmap()
Dvmwgfx_page_dirty.c476 prot = vm_get_page_prot(vma->vm_flags & ~VM_SHARED); in vmw_bo_vm_fault()
504 (vma->vm_flags & (VM_SHARED | VM_MAYWRITE)) == VM_MAYWRITE; in vmw_bo_vm_huge_fault()
546 prot = vm_get_page_prot(vma->vm_flags & ~VM_SHARED); in vmw_bo_vm_huge_fault()
/Linux-v5.10/fs/romfs/
Dmmap-nommu.c66 return vma->vm_flags & (VM_SHARED | VM_MAYSHARE) ? 0 : -ENOSYS; in romfs_mmap()
/Linux-v5.10/fs/proc/
Dnommu.c56 flags & VM_MAYSHARE ? flags & VM_SHARED ? 'S' : 's' : 'p', in nommu_region_show()
/Linux-v5.10/drivers/xen/
Dprivcmd-buf.c140 if (!(vma->vm_flags & VM_SHARED)) in privcmd_buf_mmap()
/Linux-v5.10/drivers/char/
Dmspec.c190 if ((vma->vm_flags & VM_SHARED) == 0) in mspec_mmap()
/Linux-v5.10/fs/ext2/
Dfile.c97 (vmf->vma->vm_flags & VM_SHARED); in ext2_dax_fault()
/Linux-v5.10/drivers/misc/sgi-gru/
Dgrufile.c97 if ((vma->vm_flags & (VM_SHARED | VM_WRITE)) != (VM_SHARED | VM_WRITE)) in gru_file_mmap()
/Linux-v5.10/fs/ramfs/
Dfile-nommu.c258 if (!(vma->vm_flags & (VM_SHARED | VM_MAYSHARE))) in ramfs_nommu_mmap()
/Linux-v5.10/arch/powerpc/platforms/cell/spufs/
Dfile.c291 if (!(vma->vm_flags & VM_SHARED)) in spufs_mem_mmap()
381 if (!(vma->vm_flags & VM_SHARED)) in spufs_cntl_mmap()
1043 if (!(vma->vm_flags & VM_SHARED)) in spufs_signal1_mmap()
1179 if (!(vma->vm_flags & VM_SHARED)) in spufs_signal2_mmap()
1302 if (!(vma->vm_flags & VM_SHARED)) in spufs_mss_mmap()
1364 if (!(vma->vm_flags & VM_SHARED)) in spufs_psmap_mmap()
1424 if (!(vma->vm_flags & VM_SHARED)) in spufs_mfc_mmap()
/Linux-v5.10/drivers/dma-buf/heaps/
Dheap-helpers.c181 if ((vma->vm_flags & (VM_SHARED | VM_MAYSHARE)) == 0) in dma_heap_mmap()
/Linux-v5.10/fs/9p/
Dvfs_file.c519 (vma->vm_flags & VM_SHARED) && in v9fs_mmap_file_mmap()
621 if (!(vma->vm_flags & VM_SHARED)) in v9fs_mmap_vm_close()

1234