Lines Matching refs:vm_flags
702 (void *)addr, vma->vm_flags, vma->anon_vma, mapping, index); in print_bad_pte()
790 if (vma->vm_flags & (VM_PFNMAP | VM_MIXEDMAP)) in vm_normal_page()
799 if (unlikely(vma->vm_flags & (VM_PFNMAP|VM_MIXEDMAP))) { in vm_normal_page()
800 if (vma->vm_flags & VM_MIXEDMAP) { in vm_normal_page()
809 if (!is_cow_mapping(vma->vm_flags)) in vm_normal_page()
841 unsigned long vm_flags = vma->vm_flags; in copy_one_pte() local
872 is_cow_mapping(vm_flags)) { in copy_one_pte()
890 if (is_cow_mapping(vm_flags)) { in copy_one_pte()
899 if (vm_flags & VM_SHARED) in copy_one_pte()
1051 if (!(vma->vm_flags & (VM_HUGETLB|VM_NONLINEAR|VM_PFNMAP|VM_INSERTPAGE))) { in copy_page_range()
1075 if (is_cow_mapping(vma->vm_flags)) in copy_page_range()
1092 if (is_cow_mapping(vma->vm_flags)) in copy_page_range()
1178 if (unlikely(!(vma->vm_flags & VM_NONLINEAR))) in zap_pte_range()
1315 if (vma->vm_flags & VM_ACCOUNT) in unmap_single_vma()
1441 !(vma->vm_flags & VM_PFNMAP)) in zap_vma_ptes()
1485 if (pud_huge(*pud) && vma->vm_flags & VM_HUGETLB) { in follow_page()
1496 if (pmd_huge(*pmd) && vma->vm_flags & VM_HUGETLB) { in follow_page()
1554 if ((flags & FOLL_MLOCK) && (vma->vm_flags & VM_LOCKED)) { in follow_page()
1666 unsigned long vm_flags; in __get_user_pages() local
1677 vm_flags = (gup_flags & FOLL_WRITE) ? in __get_user_pages()
1679 vm_flags &= (gup_flags & FOLL_FORCE) ? in __get_user_pages()
1735 (vma->vm_flags & (VM_IO | VM_PFNMAP)) || in __get_user_pages()
1736 !(vm_flags & vma->vm_flags)) in __get_user_pages()
1819 !(vma->vm_flags & VM_WRITE)) in __get_user_pages()
1875 vm_flags_t vm_flags; in fixup_user_fault() local
1882 vm_flags = (fault_flags & FAULT_FLAG_WRITE) ? VM_WRITE : VM_READ; in fixup_user_fault()
1883 if (!(vm_flags & vma->vm_flags)) in fixup_user_fault()
2089 vma->vm_flags |= VM_INSERTPAGE; in vm_insert_page()
2150 BUG_ON(!(vma->vm_flags & (VM_PFNMAP|VM_MIXEDMAP))); in vm_insert_pfn()
2151 BUG_ON((vma->vm_flags & (VM_PFNMAP|VM_MIXEDMAP)) == in vm_insert_pfn()
2153 BUG_ON((vma->vm_flags & VM_PFNMAP) && is_cow_mapping(vma->vm_flags)); in vm_insert_pfn()
2154 BUG_ON((vma->vm_flags & VM_MIXEDMAP) && pfn_valid(pfn)); in vm_insert_pfn()
2173 BUG_ON(!(vma->vm_flags & VM_MIXEDMAP)); in vm_insert_mixed()
2301 vma->vm_flags |= VM_PFN_AT_MMAP; in remap_pfn_range()
2302 } else if (is_cow_mapping(vma->vm_flags)) in remap_pfn_range()
2305 vma->vm_flags |= VM_IO | VM_RESERVED | VM_PFNMAP; in remap_pfn_range()
2313 vma->vm_flags &= ~(VM_IO | VM_RESERVED | VM_PFNMAP); in remap_pfn_range()
2314 vma->vm_flags &= ~VM_PFN_AT_MMAP; in remap_pfn_range()
2574 if ((vma->vm_flags & (VM_WRITE|VM_SHARED)) == in do_wp_page()
2608 } else if (unlikely((vma->vm_flags & (VM_WRITE|VM_SHARED)) == in do_wp_page()
2813 if ((ret & VM_FAULT_WRITE) && (vma->vm_flags & VM_LOCKED)) { in do_wp_page()
3075 if (vm_swap_full() || (vma->vm_flags & VM_LOCKED) || PageMlocked(page)) in do_swap_page()
3126 if ((vma->vm_flags & VM_GROWSDOWN) && address == vma->vm_start) { in check_stack_guard_page()
3136 return prev->vm_flags & VM_GROWSDOWN ? 0 : -ENOMEM; in check_stack_guard_page()
3140 if ((vma->vm_flags & VM_GROWSUP) && address + PAGE_SIZE == vma->vm_end) { in check_stack_guard_page()
3145 return next->vm_flags & VM_GROWSUP ? 0 : -ENOMEM; in check_stack_guard_page()
3193 if (vma->vm_flags & VM_WRITE) in do_anonymous_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()
3449 if (unlikely(!(vma->vm_flags & VM_NONLINEAR))) { in do_nonlinear_fault()
3672 write = (vma->vm_flags & (VM_WRITE | VM_SHARED)) == VM_WRITE; in make_pages_present()
3693 gate_vma.vm_flags = VM_READ | VM_MAYREAD | VM_EXEC | VM_MAYEXEC; in gate_vma_init()
3787 if (!(vma->vm_flags & (VM_IO | VM_PFNMAP))) in follow_pfn()
3808 if (!(vma->vm_flags & (VM_IO | VM_PFNMAP))) in follow_phys()