Lines Matching refs:vma
58 #define GET_SWAP_RA_VAL(vma) \ argument
59 (atomic_long_read(&(vma)->swap_readahead_info) ? : 4)
332 struct vm_area_struct *vma, unsigned long addr) in swap_cache_get_folio() argument
349 if (vma && vma_ra) { in swap_cache_get_folio()
353 ra_val = GET_SWAP_RA_VAL(vma); in swap_cache_get_folio()
358 atomic_long_set(&vma->swap_readahead_info, in swap_cache_get_folio()
364 if (!vma || !vma_ra) in swap_cache_get_folio()
413 struct vm_area_struct *vma, unsigned long addr, in __read_swap_cache_async() argument
456 folio = vma_alloc_folio(gfp_mask, 0, vma, addr, false); in __read_swap_cache_async()
528 struct vm_area_struct *vma, in read_swap_cache_async() argument
533 vma, addr, &page_was_allocated); in read_swap_cache_async()
632 struct vm_area_struct *vma = vmf->vma; in swap_cluster_readahead() local
652 gfp_mask, vma, addr, &page_allocated); in swap_cluster_readahead()
670 return read_swap_cache_async(entry, gfp_mask, vma, addr, NULL); in swap_cluster_readahead()
719 struct vm_area_struct *vma = vmf->vma; in swap_ra_info() local
734 ra_val = GET_SWAP_RA_VAL(vma); in swap_ra_info()
740 atomic_long_set(&vma->swap_readahead_info, in swap_ra_info()
757 start = max3(lpfn, PFN_DOWN(vma->vm_start), in swap_ra_info()
759 end = min3(rpfn, PFN_DOWN(vma->vm_end), in swap_ra_info()
785 struct vm_area_struct *vma = vmf->vma; in swap_vma_readahead() local
817 page = __read_swap_cache_async(entry, gfp_mask, vma, in swap_vma_readahead()
837 return read_swap_cache_async(fentry, gfp_mask, vma, vmf->address, in swap_vma_readahead()