Searched refs:old_gen (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/include/linux/ |
H A D | mm_inline.h | 175 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()
|
/openbmc/linux/drivers/vdpa/ifcvf/ |
H A D | ifcvf_base.c | 292 u8 old_gen, new_gen, *p; in ifcvf_read_dev_config() local 297 old_gen = vp_ioread8(&hw->common_cfg->config_generation); in ifcvf_read_dev_config() 303 } while (old_gen != new_gen); in ifcvf_read_dev_config()
|
/openbmc/linux/mm/ |
H A D | vmscan.c | 3788 if (new_gen >= 0 && new_gen != old_gen) in folio_inc_gen() 3791 new_gen = (old_gen + 1) % MAX_NR_GENS; in folio_inc_gen() 3806 int old_gen, int new_gen) in update_batch_size() argument 3812 VM_WARN_ON_ONCE(old_gen >= MAX_NR_GENS); in update_batch_size() 4039 old_gen = folio_update_gen(folio, new_gen); in walk_pte_range() 4040 if (old_gen >= 0 && old_gen != new_gen) in walk_pte_range() 4120 if (old_gen >= 0 && old_gen != new_gen) in walk_pmd_range_locked() 4731 if (old_gen >= 0 && old_gen != new_gen) in lru_gen_look_around() 4737 old_gen = folio_lru_gen(folio); in lru_gen_look_around() 4738 if (old_gen < 0) in lru_gen_look_around() [all …]
|