Home
last modified time | relevance | path

Searched refs:new_gen (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/include/linux/
Dmm_inline.h176 int old_gen, int new_gen) in lru_gen_update_size() argument
185 VM_WARN_ON_ONCE(new_gen != -1 && new_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()
191 if (new_gen >= 0) in lru_gen_update_size()
192 WRITE_ONCE(lrugen->nr_pages[new_gen][type][zone], in lru_gen_update_size()
193 lrugen->nr_pages[new_gen][type][zone] + delta); in lru_gen_update_size()
197 if (lru_gen_is_active(lruvec, new_gen)) in lru_gen_update_size()
204 if (new_gen < 0) { 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/net/tipc/
Dmonitor.c490 u16 new_gen = mon_le16_to_cpu(arrv_dom->gen); in tipc_mon_rcv() local
510 state->peer_gen = new_gen - 1; in tipc_mon_rcv()
519 if (!more(new_gen, state->peer_gen) && !probing) in tipc_mon_rcv()
531 if (!more(new_gen, state->peer_gen)) in tipc_mon_rcv()
534 state->peer_gen = new_gen; in tipc_mon_rcv()
551 dom->gen = new_gen; in tipc_mon_rcv()
/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
3169 new_gen = ((old_flags & LRU_GEN_MASK) >> LRU_GEN_PGOFF) - 1; in folio_inc_gen()
3171 if (new_gen >= 0 && new_gen != old_gen) in folio_inc_gen()
3172 return new_gen; in folio_inc_gen()
3174 new_gen = (old_gen + 1) % MAX_NR_GENS; in folio_inc_gen()
3177 new_flags |= (new_gen + 1UL) << LRU_GEN_PGOFF; in folio_inc_gen()
3183 lru_gen_update_size(lruvec, folio, old_gen, new_gen); in folio_inc_gen()
3185 return new_gen; in folio_inc_gen()
3189 int old_gen, int new_gen) in update_batch_size() argument
3196 VM_WARN_ON_ONCE(new_gen >= MAX_NR_GENS); in update_batch_size()
[all …]
/linux-6.12.1/drivers/vdpa/ifcvf/
Difcvf_base.c291 u8 old_gen, new_gen, *p; in ifcvf_read_dev_config() local
301 new_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/drivers/vdpa/octeon_ep/
Doctep_vdpa_hw.c282 u8 old_gen, new_gen, *p; in octep_read_dev_config() local
294 new_gen = ioread8(&oct_hw->common_cfg->config_generation); in octep_read_dev_config()
295 } while (old_gen != new_gen); in octep_read_dev_config()
/linux-6.12.1/fs/btrfs/
Dsend.c7202 u64 orig_gen, new_gen; in dir_changed() local
7205 ret = get_inode_gen(sctx->send_root, dir, &new_gen); in dir_changed()
7213 return (orig_gen != new_gen) ? 1 : 0; in dir_changed()