Searched refs:VM_SHARED (Results 1 – 25 of 50) sorted by relevance
12
67 return vma->vm_flags & (VM_SHARED | VM_MAYSHARE) ? 0 : -ENOSYS; in romfs_mmap()
82 (vma->vm_flags & VM_SHARED)) { in SYSCALL_DEFINE3()
169 VM_SHARED|VM_NORESERVE))) { in mprotect_fixup()212 vma->vm_page_prot = vm_get_page_prot(newflags & ~VM_SHARED); in mprotect_fixup()
220 if ((vma->vm_flags & (VM_SHARED|VM_WRITE)) != (VM_SHARED|VM_WRITE)) in madvise_remove()
83 (VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)]) | in vm_get_page_prot()197 if (vma->vm_flags & VM_SHARED) in __remove_shared_vm_struct()441 if (vma->vm_flags & VM_SHARED) in __vma_link_file()1074 vm_flags |= VM_SHARED | VM_MAYSHARE; in do_mmap_pgoff()1076 vm_flags &= ~(VM_MAYWRITE | VM_SHARED); in do_mmap_pgoff()1102 vm_flags |= VM_SHARED | VM_MAYSHARE; in do_mmap_pgoff()1228 if ((vm_flags & (VM_WRITE|VM_SHARED)) != ((VM_WRITE|VM_SHARED))) in vma_wants_writenotify()1262 return (vm_flags & (VM_NORESERVE | VM_SHARED | VM_WRITE)) == VM_WRITE; in accountable_mapping()1381 } else if (vm_flags & VM_SHARED) { in mmap_region()1399 vma->vm_page_prot = vm_get_page_prot(vm_flags & ~VM_SHARED); in mmap_region()
164 if (!vma || !(vma->vm_flags & VM_SHARED)) in SYSCALL_DEFINE5()
718 return (flags & (VM_SHARED | VM_MAYWRITE)) == VM_MAYWRITE; in is_cow_mapping()899 if (vm_flags & VM_SHARED) in copy_one_pte()2574 if ((vma->vm_flags & (VM_WRITE|VM_SHARED)) == in do_wp_page()2575 (VM_WRITE|VM_SHARED)) in do_wp_page()2608 } else if (unlikely((vma->vm_flags & (VM_WRITE|VM_SHARED)) == in do_wp_page()2609 (VM_WRITE|VM_SHARED))) { in do_wp_page()3252 if ((flags & FAULT_FLAG_WRITE) && !(vma->vm_flags & VM_SHARED)) { in __do_fault()3299 if (!(vma->vm_flags & VM_SHARED)) { in __do_fault()3672 write = (vma->vm_flags & (VM_WRITE | VM_SHARED)) == VM_WRITE; in make_pages_present()
1084 vm_flags |= VM_SHARED; in determine_vm_flags()1405 if (file && vma->vm_flags & VM_SHARED) in do_mmap_pgoff()2105 if (vma->vm_flags & VM_SHARED) { in nommu_shrink_inode_mappings()2120 if (!(vma->vm_flags & VM_SHARED)) in nommu_shrink_inode_mappings()
247 (vma->vm_flags & (VM_SHARED | VM_MAYSHARE)) && in xip_file_fault()
179 if ((vma->vm_flags & (VM_WRITE | VM_SHARED)) == VM_WRITE) in __mlock_vma_pages_range()
2315 cow = (vma->vm_flags & (VM_SHARED | VM_MAYWRITE)) == VM_MAYWRITE; in copy_hugetlb_page_range()2764 if ((flags & FAULT_FLAG_WRITE) && !(vma->vm_flags & VM_SHARED)) in hugetlb_no_page()2784 && (vma->vm_flags & VM_SHARED))); in hugetlb_no_page()2787 if ((flags & FAULT_FLAG_WRITE) && !(vma->vm_flags & VM_SHARED)) { in hugetlb_no_page()
116 if (vma->vm_flags & VM_SHARED) in ncp_mmap()
60 flags & VM_MAYSHARE ? flags & VM_SHARED ? 'S' : 's' : 'p', in nommu_region_show()
165 flags & VM_MAYSHARE ? flags & VM_SHARED ? 'S' : 's' : 'p', in nommu_vma_show()
104 if ((vma->vm_flags & (VM_SHARED | VM_WRITE)) != (VM_SHARED | VM_WRITE)) in gru_file_mmap()
261 if (!(vma->vm_flags & VM_SHARED)) in ramfs_nommu_mmap()
200 vma->vm_flags |= VM_SHARED; in bf5xx_pcm_mmap()
280 vma->vm_flags |= VM_SHARED; in bf5xx_pcm_mmap()
330 if (!(vma->vm_flags & VM_SHARED)) in spufs_mem_mmap()443 if (!(vma->vm_flags & VM_SHARED)) in spufs_cntl_mmap()1148 if (!(vma->vm_flags & VM_SHARED)) in spufs_signal1_mmap()1286 if (!(vma->vm_flags & VM_SHARED)) in spufs_signal2_mmap()1409 if (!(vma->vm_flags & VM_SHARED)) in spufs_mss_mmap()1471 if (!(vma->vm_flags & VM_SHARED)) in spufs_psmap_mmap()1531 if (!(vma->vm_flags & VM_SHARED)) in spufs_mfc_mmap()
264 if ((vma->vm_flags & VM_SHARED) == 0) in mspec_mmap()
676 if (vma->vm_flags & VM_SHARED) in mmap_zero()
51 if (!(vma->vm_flags & (VM_SHARED | VM_MAYSHARE))) in sbusfb_mmap_helper()
509 if (!(vma->vm_flags & VM_SHARED)) { in gntalloc_mmap()
321 if (vma->vm_flags & VM_SHARED) { in ashmem_mmap()
1125 if ((vma->vm_flags & VM_SHARED) && FILTER(HUGETLB_SHARED)) in vma_dump_size()1127 if (!(vma->vm_flags & VM_SHARED) && FILTER(HUGETLB_PRIVATE)) in vma_dump_size()1136 if (vma->vm_flags & VM_SHARED) { in vma_dump_size()