Searched refs:min_seq (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/mm/ |
H A D | workingset.c | 235 unsigned long min_seq; in lru_gen_eviction() local 249 min_seq = READ_ONCE(lrugen->min_seq[type]); in lru_gen_eviction() 250 token = (min_seq << LRU_REFS_WIDTH) | max(refs - 1, 0); in lru_gen_eviction() 252 hist = lru_hist_from_seq(min_seq); in lru_gen_eviction() 266 unsigned long min_seq; in lru_gen_test_recent() local 275 min_seq = READ_ONCE((*lruvec)->lrugen.min_seq[file]); in lru_gen_test_recent() 276 return (*token >> LRU_REFS_WIDTH) == (min_seq & (EVICTION_MASK >> LRU_REFS_WIDTH)); in lru_gen_test_recent() 303 hist = lru_hist_from_seq(READ_ONCE(lrugen->min_seq[type])); in lru_gen_refault()
|
H A D | vmscan.c | 3254 unsigned long min_seq[ANON_AND_FILE] = { \ 3255 READ_ONCE((lruvec)->lrugen.min_seq[LRU_GEN_ANON]), \ 3256 READ_ONCE((lruvec)->lrugen.min_seq[LRU_GEN_FILE]), \ 3304 return lruvec->lrugen.max_seq - lruvec->lrugen.min_seq[type] + 1; in get_nr_gens() 3695 int hist = lru_hist_from_seq(lrugen->min_seq[type]); in read_ctrl_pos() 3711 unsigned long seq = carryover ? lrugen->min_seq[type] : lrugen->max_seq + 1; in reset_ctrl_pos() 3787 int new_gen, old_gen = lru_gen_from_seq(lrugen->min_seq[type]); in folio_inc_gen() 4351 int new_gen, old_gen = lru_gen_from_seq(lrugen->min_seq[type]); in inc_min_seq() 4377 WRITE_ONCE(lrugen->min_seq[type], lrugen->min_seq[type] + 1); in inc_min_seq() 4393 while (min_seq[type] + MIN_NR_GENS <= lrugen->max_seq) { in try_to_inc_min_seq() [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | tree-mod-log.c | 81 u64 min_seq = BTRFS_SEQ_LAST; in btrfs_put_tree_mod_seq() local 106 min_seq = first->seq; in btrfs_put_tree_mod_seq() 117 if (tm->seq >= min_seq) in btrfs_put_tree_mod_seq() 475 u64 start, u64 min_seq, in __tree_mod_log_search() argument 492 } else if (cur->seq < min_seq) { in __tree_mod_log_search() 500 } else if (cur->seq > min_seq) { in __tree_mod_log_search() 522 u64 start, u64 min_seq) in tree_mod_log_search_oldest() argument 524 return __tree_mod_log_search(fs_info, start, min_seq, true); in tree_mod_log_search_oldest() 533 u64 start, u64 min_seq) in tree_mod_log_search() argument 535 return __tree_mod_log_search(fs_info, start, min_seq, false); in tree_mod_log_search()
|
H A D | delayed-ref.c | 516 u64 min_seq = btrfs_tree_mod_log_lowest_seq(fs_info); in btrfs_check_delayed_seq() local 518 if (min_seq != 0 && seq >= min_seq) { in btrfs_check_delayed_seq() 521 seq, min_seq); in btrfs_check_delayed_seq()
|
/openbmc/linux/include/linux/ |
H A D | mm_inline.h | 251 else if (reclaiming || lrugen->min_seq[type] + MIN_NR_GENS >= lrugen->max_seq) in lru_gen_add_folio() 252 seq = lrugen->min_seq[type]; in lru_gen_add_folio() 254 seq = lrugen->min_seq[type] + 1; in lru_gen_add_folio()
|
H A D | mmzone.h | 422 unsigned long min_seq[ANON_AND_FILE]; member
|
/openbmc/linux/Documentation/mm/ |
H A D | multigen_lru.rst | 86 ``lrugen->min_seq[]`` separately for anon and file types as clean file 115 increments ``max_seq`` when ``max_seq-min_seq+1`` approaches 131 increments ``min_seq`` when ``lrugen->folios[]`` indexed by 132 ``min_seq%MAX_NR_GENS`` becomes empty. To select a type and a tier to 133 evict from, it first compares ``min_seq[]`` to select the older type. 139 moves a page to the next generation, i.e., ``min_seq+1``, if this page
|
/openbmc/linux/kernel/printk/ |
H A D | printk.c | 4145 u64 min_seq = latched_seq_read_nolock(&clear_seq); in kmsg_dump_get_line() local 4152 if (iter->cur_seq < min_seq) in kmsg_dump_get_line() 4153 iter->cur_seq = min_seq; in kmsg_dump_get_line() 4203 u64 min_seq = latched_seq_read_nolock(&clear_seq); in kmsg_dump_get_buffer() local 4215 if (iter->cur_seq < min_seq) in kmsg_dump_get_buffer() 4216 iter->cur_seq = min_seq; in kmsg_dump_get_buffer()
|