Searched refs:MAX_NR_GENS (Results 1 – 6 of 6) sorted by relevance
127 return seq % MAX_NR_GENS; in lru_gen_from_seq()168 VM_WARN_ON_ONCE(gen >= MAX_NR_GENS); in lru_gen_is_active()183 VM_WARN_ON_ONCE(old_gen != -1 && old_gen >= MAX_NR_GENS); in lru_gen_update_size()184 VM_WARN_ON_ONCE(new_gen != -1 && new_gen >= MAX_NR_GENS); in lru_gen_update_size()
338 #define MAX_NR_GENS 4U macro389 #define NR_HIST_GENS MAX_NR_GENS413 unsigned long timestamps[MAX_NR_GENS];415 struct list_head lists[MAX_NR_GENS][ANON_AND_FILE][MAX_NR_ZONES];417 long nr_pages[MAX_NR_GENS][ANON_AND_FILE][MAX_NR_ZONES];469 int nr_pages[MAX_NR_GENS][ANON_AND_FILE][MAX_NR_ZONES];
26 DEFINE(LRU_GEN_WIDTH, order_base_2(MAX_NR_GENS + 1)); in main()
90 Generation numbers are truncated into ``order_base_2(MAX_NR_GENS+1)``94 at most ``MAX_NR_GENS`` generations. The gen counter stores a value95 within ``[1, MAX_NR_GENS]`` while a page is on one of125 page mapped by this PTE to ``(max_seq%MAX_NR_GENS)+1``.131 ``min_seq%MAX_NR_GENS`` becomes empty. To select a type and a tier to
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()[all …]
107 ``MAX_NR_GENS`` decides the number of bins for each histogram. The