Home
last modified time | relevance | path

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

/linux-6.12.1/include/linux/
Dmm_inline.h176 int old_gen, int new_gen) in lru_gen_update_size() argument
184 VM_WARN_ON_ONCE(old_gen != -1 && old_gen >= MAX_NR_GENS); in lru_gen_update_size()
186 VM_WARN_ON_ONCE(old_gen == -1 && new_gen == -1); in lru_gen_update_size()
188 if (old_gen >= 0) in lru_gen_update_size()
189 WRITE_ONCE(lrugen->nr_pages[old_gen][type][zone], in lru_gen_update_size()
190 lrugen->nr_pages[old_gen][type][zone] - delta); in lru_gen_update_size()
196 if (old_gen < 0) { in lru_gen_update_size()
205 if (lru_gen_is_active(lruvec, old_gen)) in lru_gen_update_size()
212 if (!lru_gen_is_active(lruvec, old_gen) && lru_gen_is_active(lruvec, new_gen)) { in lru_gen_update_size()
218 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.12.1/drivers/vdpa/ifcvf/
Difcvf_base.c291 u8 old_gen, new_gen, *p; in ifcvf_read_dev_config() local
296 old_gen = vp_ioread8(&hw->common_cfg->config_generation); in ifcvf_read_dev_config()
302 } while (old_gen != new_gen); in ifcvf_read_dev_config()
/linux-6.12.1/mm/
Dvmscan.c3163 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()
[all …]
/linux-6.12.1/drivers/vdpa/octeon_ep/
Doctep_vdpa_hw.c282 u8 old_gen, new_gen, *p; in octep_read_dev_config() local
289 old_gen = ioread8(&oct_hw->common_cfg->config_generation); in octep_read_dev_config()
295 } while (old_gen != new_gen); in octep_read_dev_config()