Lines Matching refs:vma

13 			 struct vm_area_struct *vma);
17 struct vm_area_struct *vma);
28 extern struct page *follow_trans_huge_pmd(struct vm_area_struct *vma,
33 struct vm_area_struct *vma,
36 struct vm_area_struct *vma,
39 struct vm_area_struct *vma,
41 extern bool move_huge_pmd(struct vm_area_struct *vma, unsigned long old_addr,
44 extern int change_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd,
64 return vmf_insert_pfn_pmd_prot(vmf, pfn, vmf->vma->vm_page_prot, write); in vmf_insert_pfn_pmd()
83 return vmf_insert_pfn_pud_prot(vmf, pfn, vmf->vma->vm_page_prot, write); in vmf_insert_pfn_pud()
130 static inline bool __transparent_hugepage_enabled(struct vm_area_struct *vma) in __transparent_hugepage_enabled() argument
132 if (vma->vm_flags & VM_NOHUGEPAGE) in __transparent_hugepage_enabled()
135 if (vma_is_temporary_stack(vma)) in __transparent_hugepage_enabled()
138 if (test_bit(MMF_DISABLE_THP, &vma->vm_mm->flags)) in __transparent_hugepage_enabled()
149 if (vma_is_dax(vma)) in __transparent_hugepage_enabled()
154 return !!(vma->vm_flags & VM_HUGEPAGE); in __transparent_hugepage_enabled()
159 bool transparent_hugepage_enabled(struct vm_area_struct *vma);
163 static inline bool transhuge_vma_suitable(struct vm_area_struct *vma, in transhuge_vma_suitable() argument
167 if (!vma_is_anonymous(vma)) { in transhuge_vma_suitable()
168 if (((vma->vm_start >> PAGE_SHIFT) & HPAGE_CACHE_INDEX_MASK) != in transhuge_vma_suitable()
169 (vma->vm_pgoff & HPAGE_CACHE_INDEX_MASK)) in transhuge_vma_suitable()
173 if (haddr < vma->vm_start || haddr + HPAGE_PMD_SIZE > vma->vm_end) in transhuge_vma_suitable()
198 void __split_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd,
211 void split_huge_pmd_address(struct vm_area_struct *vma, unsigned long address,
214 void __split_huge_pud(struct vm_area_struct *vma, pud_t *pud,
225 extern int hugepage_madvise(struct vm_area_struct *vma,
227 extern void vma_adjust_trans_huge(struct vm_area_struct *vma,
232 struct vm_area_struct *vma);
234 struct vm_area_struct *vma);
243 struct vm_area_struct *vma) in pmd_trans_huge_lock() argument
246 return __pmd_trans_huge_lock(pmd, vma); in pmd_trans_huge_lock()
251 struct vm_area_struct *vma) in pud_trans_huge_lock() argument
254 return __pud_trans_huge_lock(pud, vma); in pud_trans_huge_lock()
292 struct page *follow_devmap_pmd(struct vm_area_struct *vma, unsigned long addr,
294 struct page *follow_devmap_pud(struct vm_area_struct *vma, unsigned long addr,
362 static inline bool __transparent_hugepage_enabled(struct vm_area_struct *vma) in __transparent_hugepage_enabled() argument
367 static inline bool transparent_hugepage_enabled(struct vm_area_struct *vma) in transparent_hugepage_enabled() argument
372 static inline bool transhuge_vma_suitable(struct vm_area_struct *vma, in transhuge_vma_suitable() argument
408 static inline void __split_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, in __split_huge_pmd() argument
410 static inline void split_huge_pmd_address(struct vm_area_struct *vma, in split_huge_pmd_address() argument
416 static inline int hugepage_madvise(struct vm_area_struct *vma, in hugepage_madvise() argument
422 static inline void vma_adjust_trans_huge(struct vm_area_struct *vma, in vma_adjust_trans_huge() argument
433 struct vm_area_struct *vma) in pmd_trans_huge_lock() argument
438 struct vm_area_struct *vma) in pud_trans_huge_lock() argument
464 static inline struct page *follow_devmap_pmd(struct vm_area_struct *vma, in follow_devmap_pmd() argument
470 static inline struct page *follow_devmap_pud(struct vm_area_struct *vma, in follow_devmap_pud() argument