Lines Matching refs:old_gen
3163 int new_gen, old_gen = lru_gen_from_seq(lrugen->min_seq[type]); in folio_inc_gen() local
3171 if (new_gen >= 0 && new_gen != old_gen) in folio_inc_gen()
3174 new_gen = (old_gen + 1) % MAX_NR_GENS; in folio_inc_gen()
3183 lru_gen_update_size(lruvec, folio, old_gen, new_gen); in folio_inc_gen()
3189 int old_gen, int new_gen) in update_batch_size() argument
3195 VM_WARN_ON_ONCE(old_gen >= MAX_NR_GENS); in update_batch_size()
3200 walk->nr_pages[old_gen][type][zone] -= delta; in update_batch_size()
3388 int old_gen, new_gen = lru_gen_from_seq(max_seq); in walk_pte_range() local
3427 old_gen = folio_update_gen(folio, new_gen); in walk_pte_range()
3428 if (old_gen >= 0 && old_gen != new_gen) in walk_pte_range()
3429 update_batch_size(walk, folio, old_gen, new_gen); in walk_pte_range()
3451 int old_gen, new_gen = lru_gen_from_seq(max_seq); in walk_pmd_range_locked() local
3511 old_gen = folio_update_gen(folio, new_gen); in walk_pmd_range_locked()
3512 if (old_gen >= 0 && old_gen != new_gen) in walk_pmd_range_locked()
3513 update_batch_size(walk, folio, old_gen, new_gen); in walk_pmd_range_locked()
3722 int new_gen, old_gen = lru_gen_from_seq(lrugen->min_seq[type]); in inc_min_seq() local
3729 struct list_head *head = &lrugen->folios[old_gen][type][zone]; in inc_min_seq()
4061 int old_gen, new_gen = lru_gen_from_seq(max_seq); in lru_gen_look_around() local
4127 old_gen = folio_update_gen(folio, new_gen); in lru_gen_look_around()
4128 if (old_gen >= 0 && old_gen != new_gen) in lru_gen_look_around()
4129 update_batch_size(walk, folio, old_gen, new_gen); in lru_gen_look_around()
4134 old_gen = folio_lru_gen(folio); in lru_gen_look_around()
4135 if (old_gen < 0) in lru_gen_look_around()
4137 else if (old_gen != new_gen) in lru_gen_look_around()