Home
last modified time | relevance | path

Searched refs:old_gen (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/include/linux/
Dmm_inline.h175 int old_gen, int new_gen) in lru_gen_update_size() argument
183 VM_WARN_ON_ONCE(old_gen != -1 && old_gen >= MAX_NR_GENS); in lru_gen_update_size()
185 VM_WARN_ON_ONCE(old_gen == -1 && new_gen == -1); in lru_gen_update_size()
187 if (old_gen >= 0) in lru_gen_update_size()
188 WRITE_ONCE(lrugen->nr_pages[old_gen][type][zone], in lru_gen_update_size()
189 lrugen->nr_pages[old_gen][type][zone] - delta); in lru_gen_update_size()
195 if (old_gen < 0) { in lru_gen_update_size()
204 if (lru_gen_is_active(lruvec, old_gen)) in lru_gen_update_size()
211 if (!lru_gen_is_active(lruvec, old_gen) && lru_gen_is_active(lruvec, new_gen)) { in lru_gen_update_size()
217 VM_WARN_ON_ONCE(lru_gen_is_active(lruvec, old_gen) && !lru_gen_is_active(lruvec, new_gen)); in lru_gen_update_size()
/linux-6.1.9/drivers/vdpa/ifcvf/
Difcvf_base.c265 u8 old_gen, new_gen, *p; in ifcvf_read_dev_config() local
270 old_gen = vp_ioread8(&hw->common_cfg->config_generation); in ifcvf_read_dev_config()
276 } while (old_gen != new_gen); in ifcvf_read_dev_config()
/linux-6.1.9/mm/
Dvmscan.c3675 int new_gen, old_gen = lru_gen_from_seq(lrugen->min_seq[type]); in folio_inc_gen() local
3683 if (new_gen >= 0 && new_gen != old_gen) in folio_inc_gen()
3686 new_gen = (old_gen + 1) % MAX_NR_GENS; in folio_inc_gen()
3695 lru_gen_update_size(lruvec, folio, old_gen, new_gen); in folio_inc_gen()
3701 int old_gen, int new_gen) in update_batch_size() argument
3707 VM_WARN_ON_ONCE(old_gen >= MAX_NR_GENS); in update_batch_size()
3712 walk->nr_pages[old_gen][type][zone] -= delta; in update_batch_size()
3887 int old_gen, new_gen = lru_gen_from_seq(walk->max_seq); in walk_pte_range() local
3930 old_gen = folio_update_gen(folio, new_gen); in walk_pte_range()
3931 if (old_gen >= 0 && old_gen != new_gen) in walk_pte_range()
[all …]