Lines Matching refs:MAX_NR_GENS
3136 for ((gen) = 0; (gen) < MAX_NR_GENS; (gen)++) \
3182 get_nr_gens(lruvec, LRU_GEN_ANON) <= MAX_NR_GENS; in seq_is_valid()
3652 VM_WARN_ON_ONCE(gen >= MAX_NR_GENS); in folio_update_gen()
3686 new_gen = (old_gen + 1) % MAX_NR_GENS; in folio_inc_gen()
3707 VM_WARN_ON_ONCE(old_gen >= MAX_NR_GENS); in update_batch_size()
3708 VM_WARN_ON_ONCE(new_gen >= MAX_NR_GENS); in update_batch_size()
4322 if (get_nr_gens(lruvec, type) != MAX_NR_GENS) in inc_max_seq()
4725 VM_WARN_ON_ONCE_FOLIO(gen >= MAX_NR_GENS, folio); in sort_folio()
5575 else if (max_seq >= MAX_NR_GENS) in lru_gen_seq_show()
5576 seq = max_seq - MAX_NR_GENS + 1; in lru_gen_seq_show()
5625 if (!force_scan && min_seq[!can_swap] + MAX_NR_GENS - 1 <= max_seq) in run_aging()
5852 BUILD_BUG_ON(MIN_NR_GENS + 1 >= MAX_NR_GENS); in init_lru_gen()
5853 BUILD_BUG_ON(BIT(LRU_GEN_WIDTH) <= MAX_NR_GENS); in init_lru_gen()