Lines Matching refs:vma
17 struct vm_area_struct *vma);
28 bool madvise_free_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma,
30 int zap_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, pmd_t *pmd,
32 int zap_huge_pud(struct mmu_gather *tlb, struct vm_area_struct *vma, pud_t *pud,
34 bool move_huge_pmd(struct vm_area_struct *vma, unsigned long old_addr,
36 int change_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma,
100 static inline bool transhuge_vma_suitable(struct vm_area_struct *vma, in transhuge_vma_suitable() argument
106 if (!vma_is_anonymous(vma)) { in transhuge_vma_suitable()
107 if (!IS_ALIGNED((vma->vm_start >> PAGE_SHIFT) - vma->vm_pgoff, in transhuge_vma_suitable()
114 if (haddr < vma->vm_start || haddr + HPAGE_PMD_SIZE > vma->vm_end) in transhuge_vma_suitable()
119 static inline bool file_thp_enabled(struct vm_area_struct *vma) in file_thp_enabled() argument
123 if (!vma->vm_file) in file_thp_enabled()
126 inode = vma->vm_file->f_inode; in file_thp_enabled()
129 (vma->vm_flags & VM_EXEC) && in file_thp_enabled()
133 bool hugepage_vma_check(struct vm_area_struct *vma, unsigned long vm_flags,
152 void __split_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd,
165 void split_huge_pmd_address(struct vm_area_struct *vma, unsigned long address,
168 void __split_huge_pud(struct vm_area_struct *vma, pud_t *pud,
179 int hugepage_madvise(struct vm_area_struct *vma, unsigned long *vm_flags,
181 int madvise_collapse(struct vm_area_struct *vma,
184 void vma_adjust_trans_huge(struct vm_area_struct *vma, unsigned long start,
186 spinlock_t *__pmd_trans_huge_lock(pmd_t *pmd, struct vm_area_struct *vma);
187 spinlock_t *__pud_trans_huge_lock(pud_t *pud, struct vm_area_struct *vma);
196 struct vm_area_struct *vma) in pmd_trans_huge_lock() argument
199 return __pmd_trans_huge_lock(pmd, vma); in pmd_trans_huge_lock()
204 struct vm_area_struct *vma) in pud_trans_huge_lock() argument
207 return __pud_trans_huge_lock(pud, vma); in pud_trans_huge_lock()
221 struct page *follow_devmap_pmd(struct vm_area_struct *vma, unsigned long addr,
223 struct page *follow_devmap_pud(struct vm_area_struct *vma, unsigned long addr,
270 static inline bool transhuge_vma_suitable(struct vm_area_struct *vma, in transhuge_vma_suitable() argument
276 static inline bool hugepage_vma_check(struct vm_area_struct *vma, in hugepage_vma_check() argument
307 static inline void __split_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, in __split_huge_pmd() argument
309 static inline void split_huge_pmd_address(struct vm_area_struct *vma, in split_huge_pmd_address() argument
315 static inline int hugepage_madvise(struct vm_area_struct *vma, in hugepage_madvise() argument
321 static inline int madvise_collapse(struct vm_area_struct *vma, in madvise_collapse() argument
328 static inline void vma_adjust_trans_huge(struct vm_area_struct *vma, in vma_adjust_trans_huge() argument
339 struct vm_area_struct *vma) in pmd_trans_huge_lock() argument
344 struct vm_area_struct *vma) in pud_trans_huge_lock() argument
374 static inline struct page *follow_devmap_pmd(struct vm_area_struct *vma, in follow_devmap_pmd() argument
380 static inline struct page *follow_devmap_pud(struct vm_area_struct *vma, in follow_devmap_pud() argument