Home
last modified time | relevance | path

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

/linux-6.1.9/include/linux/
Dmm_inline.h127 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()
Dmmzone.h338 #define MAX_NR_GENS 4U macro
389 #define NR_HIST_GENS MAX_NR_GENS
413 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];
/linux-6.1.9/kernel/
Dbounds.c26 DEFINE(LRU_GEN_WIDTH, order_base_2(MAX_NR_GENS + 1)); in main()
/linux-6.1.9/Documentation/mm/
Dmultigen_lru.rst90 Generation numbers are truncated into ``order_base_2(MAX_NR_GENS+1)``
94 at most ``MAX_NR_GENS`` generations. The gen counter stores a value
95 within ``[1, MAX_NR_GENS]`` while a page is on one of
125 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
/linux-6.1.9/mm/
Dvmscan.c3136 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 …]
/linux-6.1.9/Documentation/admin-guide/mm/
Dmultigen_lru.rst107 ``MAX_NR_GENS`` decides the number of bins for each histogram. The