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()
347 #define MAX_NR_GENS 4U macro398 #define NR_HIST_GENS MAX_NR_GENS422 unsigned long timestamps[MAX_NR_GENS];424 struct list_head folios[MAX_NR_GENS][ANON_AND_FILE][MAX_NR_ZONES];426 long nr_pages[MAX_NR_GENS][ANON_AND_FILE][MAX_NR_ZONES];482 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 of126 page mapped by this PTE to ``(max_seq%MAX_NR_GENS)+1``.132 ``min_seq%MAX_NR_GENS`` becomes empty. To select a type and a tier to
3273 for ((gen) = 0; (gen) < MAX_NR_GENS; (gen)++) \3325 get_nr_gens(lruvec, LRU_GEN_ANON) <= MAX_NR_GENS; in seq_is_valid()3777 VM_WARN_ON_ONCE(gen >= MAX_NR_GENS); in folio_update_gen()3811 new_gen = (old_gen + 1) % MAX_NR_GENS; in folio_inc_gen()3832 VM_WARN_ON_ONCE(old_gen >= MAX_NR_GENS); in update_batch_size()3833 VM_WARN_ON_ONCE(new_gen >= MAX_NR_GENS); in update_batch_size()4449 if (get_nr_gens(lruvec, type) != MAX_NR_GENS) in inc_max_seq()4908 VM_WARN_ON_ONCE_FOLIO(gen >= MAX_NR_GENS, folio); in sort_folio()5950 else if (max_seq >= MAX_NR_GENS) in lru_gen_seq_show()5951 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