Searched refs:lrugen (Results 1 – 5 of 5) sorted by relevance
166 unsigned long max_seq = lruvec->lrugen.max_seq; in lru_gen_is_active()181 struct lru_gen_struct *lrugen = &lruvec->lrugen; in lru_gen_update_size() local188 WRITE_ONCE(lrugen->nr_pages[old_gen][type][zone], in lru_gen_update_size()189 lrugen->nr_pages[old_gen][type][zone] - delta); in lru_gen_update_size()191 WRITE_ONCE(lrugen->nr_pages[new_gen][type][zone], in lru_gen_update_size()192 lrugen->nr_pages[new_gen][type][zone] + delta); in lru_gen_update_size()227 struct lru_gen_struct *lrugen = &lruvec->lrugen; in lru_gen_add_folio() local231 if (folio_test_unevictable(folio) || !lrugen->enabled) in lru_gen_add_folio()243 seq = lrugen->max_seq; in lru_gen_add_folio()247 seq = lrugen->min_seq[type] + 1; in lru_gen_add_folio()[all …]
527 struct lru_gen_struct lrugen; member
226 struct lru_gen_struct *lrugen; in lru_gen_eviction() local237 lrugen = &lruvec->lrugen; in lru_gen_eviction()238 min_seq = READ_ONCE(lrugen->min_seq[type]); in lru_gen_eviction()242 atomic_long_add(delta, &lrugen->evicted[hist][type][tier]); in lru_gen_eviction()255 struct lru_gen_struct *lrugen; in lru_gen_refault() local273 lrugen = &lruvec->lrugen; in lru_gen_refault()275 min_seq = READ_ONCE(lrugen->min_seq[type]); in lru_gen_refault()284 atomic_long_add(delta, &lrugen->refaulted[hist][type][tier]); in lru_gen_refault()
3127 unsigned long max_seq = READ_ONCE((lruvec)->lrugen.max_seq)3131 READ_ONCE((lruvec)->lrugen.min_seq[LRU_GEN_ANON]), \3132 READ_ONCE((lruvec)->lrugen.min_seq[LRU_GEN_FILE]), \3174 return lruvec->lrugen.max_seq - lruvec->lrugen.min_seq[type] + 1; in get_nr_gens()3582 struct lru_gen_struct *lrugen = &lruvec->lrugen; in read_ctrl_pos() local3583 int hist = lru_hist_from_seq(lrugen->min_seq[type]); in read_ctrl_pos()3585 pos->refaulted = lrugen->avg_refaulted[type][tier] + in read_ctrl_pos()3586 atomic_long_read(&lrugen->refaulted[hist][type][tier]); in read_ctrl_pos()3587 pos->total = lrugen->avg_total[type][tier] + in read_ctrl_pos()3588 atomic_long_read(&lrugen->evicted[hist][type][tier]); in read_ctrl_pos()[all …]
84 ``lrugen->max_seq`` for both anon and file types as they are aged on86 ``lrugen->min_seq[]`` separately for anon and file types as clean file92 truncated generation number is an index to ``lrugen->lists[]``. The96 ``lrugen->lists[]``; otherwise it stores zero.100 generations, tiers do not have dedicated ``lrugen->lists[]``. In130 increments ``min_seq`` when ``lrugen->lists[]`` indexed by