Lines Matching refs:pvmw
4589 void lru_gen_look_around(struct page_vma_mapped_walk *pvmw) in lru_gen_look_around() argument
4599 struct folio *folio = pfn_folio(pvmw->pfn); in lru_gen_look_around()
4606 lockdep_assert_held(pvmw->ptl); in lru_gen_look_around()
4609 if (spin_is_contended(pvmw->ptl)) in lru_gen_look_around()
4615 start = max(pvmw->address & PMD_MASK, pvmw->vma->vm_start); in lru_gen_look_around()
4616 end = min(pvmw->address | ~PMD_MASK, pvmw->vma->vm_end - 1) + 1; in lru_gen_look_around()
4619 if (pvmw->address - start < MIN_LRU_BATCH * PAGE_SIZE / 2) in lru_gen_look_around()
4621 else if (end - pvmw->address < MIN_LRU_BATCH * PAGE_SIZE / 2) in lru_gen_look_around()
4624 start = pvmw->address - MIN_LRU_BATCH * PAGE_SIZE / 2; in lru_gen_look_around()
4625 end = pvmw->address + MIN_LRU_BATCH * PAGE_SIZE / 2; in lru_gen_look_around()
4629 pte = pvmw->pte - (pvmw->address - start) / PAGE_SIZE; in lru_gen_look_around()
4637 pfn = get_pte_pfn(pte[i], pvmw->vma, addr); in lru_gen_look_around()
4648 if (!ptep_test_and_clear_young(pvmw->vma, addr, pte + i)) in lru_gen_look_around()
4670 update_bloom_filter(lruvec, max_seq, pvmw->pmd); in lru_gen_look_around()