Searched refs:lrugen (Results 1 – 2 of 2) sorted by relevance
3371 unsigned long max_seq = READ_ONCE((lruvec)->lrugen.max_seq)3375 READ_ONCE((lruvec)->lrugen.min_seq[LRU_GEN_ANON]), \3376 READ_ONCE((lruvec)->lrugen.min_seq[LRU_GEN_FILE]), \3428 return lruvec->lrugen.max_seq - lruvec->lrugen.min_seq[type] + 1; in get_nr_gens()3818 struct lru_gen_folio *lrugen = &lruvec->lrugen; in read_ctrl_pos() local3819 int hist = lru_hist_from_seq(lrugen->min_seq[type]); in read_ctrl_pos()3821 pos->refaulted = lrugen->avg_refaulted[type][tier] + in read_ctrl_pos()3822 atomic_long_read(&lrugen->refaulted[hist][type][tier]); in read_ctrl_pos()3823 pos->total = lrugen->avg_total[type][tier] + in read_ctrl_pos()3824 atomic_long_read(&lrugen->evicted[hist][type][tier]); in read_ctrl_pos()[all …]
238 struct lru_gen_folio *lrugen; in lru_gen_eviction() local249 lrugen = &lruvec->lrugen; in lru_gen_eviction()250 min_seq = READ_ONCE(lrugen->min_seq[type]); in lru_gen_eviction()254 atomic_long_add(delta, &lrugen->evicted[hist][type][tier]); in lru_gen_eviction()276 min_seq = READ_ONCE((*lruvec)->lrugen.min_seq[file]); in lru_gen_test_recent()287 struct lru_gen_folio *lrugen; in lru_gen_refault() local302 lrugen = &lruvec->lrugen; in lru_gen_refault()304 hist = lru_hist_from_seq(READ_ONCE(lrugen->min_seq[type])); in lru_gen_refault()309 atomic_long_add(delta, &lrugen->refaulted[hist][type][tier]); in lru_gen_refault()