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 int mincore_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd,
44 extern bool move_huge_pmd(struct vm_area_struct *vma, unsigned long old_addr,
47 extern int change_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd,
50 vm_fault_t vmf_insert_pfn_pmd(struct vm_area_struct *vma, unsigned long addr,
52 vm_fault_t vmf_insert_pfn_pud(struct vm_area_struct *vma, unsigned long addr,
92 extern bool is_vma_temporary_stack(struct vm_area_struct *vma);
96 static inline bool transparent_hugepage_enabled(struct vm_area_struct *vma) in transparent_hugepage_enabled() argument
98 if (vma->vm_flags & VM_NOHUGEPAGE) in transparent_hugepage_enabled()
101 if (is_vma_temporary_stack(vma)) in transparent_hugepage_enabled()
104 if (test_bit(MMF_DISABLE_THP, &vma->vm_mm->flags)) in transparent_hugepage_enabled()
110 if (vma_is_dax(vma)) in transparent_hugepage_enabled()
115 return !!(vma->vm_flags & VM_HUGEPAGE); in transparent_hugepage_enabled()
146 void __split_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd,
159 void split_huge_pmd_address(struct vm_area_struct *vma, unsigned long address,
162 void __split_huge_pud(struct vm_area_struct *vma, pud_t *pud,
173 extern int hugepage_madvise(struct vm_area_struct *vma,
175 extern void vma_adjust_trans_huge(struct vm_area_struct *vma,
180 struct vm_area_struct *vma);
182 struct vm_area_struct *vma);
191 struct vm_area_struct *vma) in pmd_trans_huge_lock() argument
193 VM_BUG_ON_VMA(!rwsem_is_locked(&vma->vm_mm->mmap_sem), vma); in pmd_trans_huge_lock()
195 return __pmd_trans_huge_lock(pmd, vma); in pmd_trans_huge_lock()
200 struct vm_area_struct *vma) in pud_trans_huge_lock() argument
202 VM_BUG_ON_VMA(!rwsem_is_locked(&vma->vm_mm->mmap_sem), vma); in pud_trans_huge_lock()
204 return __pud_trans_huge_lock(pud, vma); in pud_trans_huge_lock()
215 struct page *follow_devmap_pmd(struct vm_area_struct *vma, unsigned long addr,
217 struct page *follow_devmap_pud(struct vm_area_struct *vma, unsigned long addr,
260 static inline bool transparent_hugepage_enabled(struct vm_area_struct *vma) in transparent_hugepage_enabled() argument
290 static inline void __split_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, in __split_huge_pmd() argument
292 static inline void split_huge_pmd_address(struct vm_area_struct *vma, in split_huge_pmd_address() argument
298 static inline int hugepage_madvise(struct vm_area_struct *vma, in hugepage_madvise() argument
304 static inline void vma_adjust_trans_huge(struct vm_area_struct *vma, in vma_adjust_trans_huge() argument
315 struct vm_area_struct *vma) in pmd_trans_huge_lock() argument
320 struct vm_area_struct *vma) in pud_trans_huge_lock() argument
346 static inline struct page *follow_devmap_pmd(struct vm_area_struct *vma, in follow_devmap_pmd() argument
352 static inline struct page *follow_devmap_pud(struct vm_area_struct *vma, in follow_devmap_pud() argument