Home
last modified time | relevance | path

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

123

/Linux-v5.4/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.h137 {VM_SHARED, "shared" }, \
/Linux-v5.4/mm/
Duserfaultfd.c180 int vm_alloc_shared = dst_vma->vm_flags & VM_SHARED; in __mcopy_atomic_hugetlb()
181 int vm_shared = dst_vma->vm_flags & VM_SHARED; in __mcopy_atomic_hugetlb()
243 vm_shared = dst_vma->vm_flags & VM_SHARED; in __mcopy_atomic_hugetlb()
413 if (!(dst_vma->vm_flags & VM_SHARED)) { in mfill_atomic_pte()
499 dst_vma->vm_flags & VM_SHARED)) in __mcopy_atomic()
518 if (!(dst_vma->vm_flags & VM_SHARED) && in __mcopy_atomic()
Dmmap.c115 (VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)]) | in vm_get_page_prot()
135 vm_flags &= ~VM_SHARED; in vma_set_page_prot()
150 if (vma->vm_flags & VM_SHARED) in __remove_shared_vm_struct()
630 if (vma->vm_flags & VM_SHARED) in __vma_link_file()
1518 vm_flags |= VM_SHARED | VM_MAYSHARE; in do_mmap()
1520 vm_flags &= ~(VM_MAYWRITE | VM_SHARED); in do_mmap()
1550 vm_flags |= VM_SHARED | VM_MAYSHARE; in do_mmap()
1679 if ((vm_flags & (VM_WRITE|VM_SHARED)) != ((VM_WRITE|VM_SHARED))) in vma_wants_writenotify()
1718 return (vm_flags & (VM_NORESERVE | VM_SHARED | VM_WRITE)) == VM_WRITE; in accountable_mapping()
1794 if (vm_flags & VM_SHARED) { in mmap_region()
[all …]
Dmsync.c89 (vma->vm_flags & VM_SHARED)) { in SYSCALL_DEFINE3()
Dinternal.h257 return (flags & (VM_SHARED | VM_MAYWRITE)) == VM_MAYWRITE; in is_cow_mapping()
288 return (flags & (VM_WRITE | VM_SHARED | VM_STACK)) == VM_WRITE; in is_data_mapping()
Dmprotect.c64 if (prot_numa && !(vma->vm_flags & VM_SHARED) && in change_pte_range()
383 VM_SHARED|VM_NORESERVE))) { in mprotect_fixup()
434 if ((oldflags & (VM_WRITE | VM_SHARED | VM_LOCKED)) == VM_LOCKED && in mprotect_fixup()
Dmemory.c766 if (vm_flags & VM_SHARED) in copy_one_pte()
2459 WARN_ON_ONCE(!(vmf->vma->vm_flags & VM_SHARED)); in finish_mkwrite_fault()
2561 if ((vma->vm_flags & (VM_WRITE|VM_SHARED)) == in do_wp_page()
2562 (VM_WRITE|VM_SHARED)) in do_wp_page()
2617 } else if (unlikely((vma->vm_flags & (VM_WRITE|VM_SHARED)) == in do_wp_page()
2618 (VM_WRITE|VM_SHARED))) { in do_wp_page()
2959 if (vma->vm_flags & VM_SHARED) in do_anonymous_page()
3300 if (write && !(vma->vm_flags & VM_SHARED)) { in alloc_set_pte()
3340 !(vmf->vma->vm_flags & VM_SHARED)) in finish_fault()
3349 if (!(vmf->vma->vm_flags & VM_SHARED)) in finish_fault()
[all …]
Dmadvise.c96 if (vma->vm_file || vma->vm_flags & VM_SHARED) { in madvise_behavior()
833 if ((vma->vm_flags & (VM_SHARED|VM_WRITE)) != (VM_SHARED|VM_WRITE)) in madvise_remove()
Dnommu.c962 vm_flags |= VM_SHARED; in determine_vm_flags()
1255 if (file && vma->vm_flags & VM_SHARED) in do_mmap()
1805 if (vma->vm_flags & VM_SHARED) { in nommu_shrink_inode_mappings()
1819 if (!(vma->vm_flags & VM_SHARED)) in nommu_shrink_inode_mappings()
/Linux-v5.4/fs/romfs/
Dmmap-nommu.c66 return vma->vm_flags & (VM_SHARED | VM_MAYSHARE) ? 0 : -ENOSYS; in romfs_mmap()
/Linux-v5.4/fs/proc/
Dnommu.c57 flags & VM_MAYSHARE ? flags & VM_SHARED ? 'S' : 's' : 'p', in nommu_region_show()
Dtask_nommu.c172 flags & VM_MAYSHARE ? flags & VM_SHARED ? 'S' : 's' : 'p', in nommu_vma_show()
/Linux-v5.4/drivers/xen/
Dprivcmd-buf.c140 if (!(vma->vm_flags & VM_SHARED)) in privcmd_buf_mmap()
Dgntalloc.c513 if (!(vma->vm_flags & VM_SHARED)) { in gntalloc_mmap()
/Linux-v5.4/drivers/char/
Dmspec.c191 if ((vma->vm_flags & VM_SHARED) == 0) in mspec_mmap()
/Linux-v5.4/fs/ramfs/
Dfile-nommu.c258 if (!(vma->vm_flags & (VM_SHARED | VM_MAYSHARE))) in ramfs_nommu_mmap()
/Linux-v5.4/drivers/misc/sgi-gru/
Dgrufile.c96 if ((vma->vm_flags & (VM_SHARED | VM_WRITE)) != (VM_SHARED | VM_WRITE)) in gru_file_mmap()
/Linux-v5.4/fs/9p/
Dvfs_file.c516 (vma->vm_flags & VM_SHARED) && in v9fs_mmap_file_mmap()
618 if (!(vma->vm_flags & VM_SHARED)) in v9fs_mmap_vm_close()
/Linux-v5.4/arch/powerpc/platforms/cell/spufs/
Dfile.c284 if (!(vma->vm_flags & VM_SHARED)) in spufs_mem_mmap()
374 if (!(vma->vm_flags & VM_SHARED)) in spufs_cntl_mmap()
1054 if (!(vma->vm_flags & VM_SHARED)) in spufs_signal1_mmap()
1192 if (!(vma->vm_flags & VM_SHARED)) in spufs_signal2_mmap()
1315 if (!(vma->vm_flags & VM_SHARED)) in spufs_mss_mmap()
1377 if (!(vma->vm_flags & VM_SHARED)) in spufs_psmap_mmap()
1437 if (!(vma->vm_flags & VM_SHARED)) in spufs_mfc_mmap()
/Linux-v5.4/drivers/dma-buf/
Dudmabuf.c41 if ((vma->vm_flags & (VM_SHARED | VM_MAYSHARE)) == 0) in mmap_udmabuf()
/Linux-v5.4/drivers/video/fbdev/
Dsbuslib.c52 if (!(vma->vm_flags & (VM_SHARED | VM_MAYSHARE))) in sbusfb_mmap_helper()
/Linux-v5.4/fs/
Dbinfmt_elf.c1315 if ((vma->vm_flags & VM_SHARED) && FILTER(DAX_SHARED)) in vma_dump_size()
1317 if (!(vma->vm_flags & VM_SHARED) && FILTER(DAX_PRIVATE)) in vma_dump_size()
1324 if ((vma->vm_flags & VM_SHARED) && FILTER(HUGETLB_SHARED)) in vma_dump_size()
1326 if (!(vma->vm_flags & VM_SHARED) && FILTER(HUGETLB_PRIVATE)) in vma_dump_size()
1336 if (vma->vm_flags & VM_SHARED) { in vma_dump_size()
/Linux-v5.4/fs/ext4/
Dfile.c311 (vmf->vma->vm_flags & VM_SHARED); in ext4_dax_huge_fault()
/Linux-v5.4/fs/hugetlbfs/
Dinode.c428 pseudo_vma.vm_flags = (VM_HUGETLB | VM_MAYSHARE | VM_SHARED); in remove_inode_hugepages()
617 pseudo_vma.vm_flags = (VM_HUGETLB | VM_MAYSHARE | VM_SHARED); in hugetlbfs_fallocate()

123