Lines Matching refs:vma
42 static inline bool can_madv_lru_vma(struct vm_area_struct *vma) in can_madv_lru_vma() argument
44 return !(vma->vm_flags & (VM_LOCKED|VM_HUGETLB|VM_PFNMAP)); in can_madv_lru_vma()
48 struct vm_area_struct *vma,
292 void __vma_link_list(struct mm_struct *mm, struct vm_area_struct *vma,
296 extern long populate_vma_page_range(struct vm_area_struct *vma,
298 extern void munlock_vma_pages_range(struct vm_area_struct *vma,
300 static inline void munlock_vma_pages_all(struct vm_area_struct *vma) in munlock_vma_pages_all() argument
302 munlock_vma_pages_range(vma, vma->vm_start, vma->vm_end); in munlock_vma_pages_all()
339 extern pmd_t maybe_pmd_mkwrite(pmd_t pmd, struct vm_area_struct *vma);
345 __vma_address(struct page *page, struct vm_area_struct *vma) in __vma_address() argument
348 return vma->vm_start + ((pgoff - vma->vm_pgoff) << PAGE_SHIFT); in __vma_address()
352 vma_address(struct page *page, struct vm_area_struct *vma) in vma_address() argument
356 start = __vma_address(page, vma); in vma_address()
360 VM_BUG_ON_VMA(end < vma->vm_start || start >= vma->vm_end, vma); in vma_address()
362 return max(start, vma->vm_start); in vma_address()
380 fpin = get_file(vmf->vma->vm_file); in maybe_unlock_mmap_for_io()
381 up_read(&vmf->vma->vm_mm->mmap_sem); in maybe_unlock_mmap_for_io()