Lines Matching refs:old_gen

3787 	int new_gen, old_gen = lru_gen_from_seq(lrugen->min_seq[type]);  in folio_inc_gen()  local
3795 if (new_gen >= 0 && new_gen != old_gen) in folio_inc_gen()
3798 new_gen = (old_gen + 1) % MAX_NR_GENS; in folio_inc_gen()
3807 lru_gen_update_size(lruvec, folio, old_gen, new_gen); in folio_inc_gen()
3813 int old_gen, int new_gen) in update_batch_size() argument
3819 VM_WARN_ON_ONCE(old_gen >= MAX_NR_GENS); in update_batch_size()
3824 walk->nr_pages[old_gen][type][zone] -= delta; in update_batch_size()
4002 int old_gen, new_gen = lru_gen_from_seq(walk->max_seq); in walk_pte_range() local
4046 old_gen = folio_update_gen(folio, new_gen); in walk_pte_range()
4047 if (old_gen >= 0 && old_gen != new_gen) in walk_pte_range()
4048 update_batch_size(walk, folio, old_gen, new_gen); in walk_pte_range()
4070 int old_gen, new_gen = lru_gen_from_seq(walk->max_seq); in walk_pmd_range_locked() local
4126 old_gen = folio_update_gen(folio, new_gen); in walk_pmd_range_locked()
4127 if (old_gen >= 0 && old_gen != new_gen) in walk_pmd_range_locked()
4128 update_batch_size(walk, folio, old_gen, new_gen); in walk_pmd_range_locked()
4351 int new_gen, old_gen = lru_gen_from_seq(lrugen->min_seq[type]); in inc_min_seq() local
4358 struct list_head *head = &lrugen->folios[old_gen][type][zone]; in inc_min_seq()
4674 int old_gen, new_gen = lru_gen_from_seq(max_seq); in lru_gen_look_around() local
4737 old_gen = folio_update_gen(folio, new_gen); in lru_gen_look_around()
4738 if (old_gen >= 0 && old_gen != new_gen) in lru_gen_look_around()
4739 update_batch_size(walk, folio, old_gen, new_gen); in lru_gen_look_around()
4744 old_gen = folio_lru_gen(folio); in lru_gen_look_around()
4745 if (old_gen < 0) in lru_gen_look_around()
4747 else if (old_gen != new_gen) in lru_gen_look_around()