Lines Matching refs:memcg

252 	 * Per-memcg and per-lruvec counters track memory, consumed
448 /* the memcg generation this lru_gen_folio belongs to */
505 * An onlining memcg is added to the tail of a random bin in the old generation.
507 * per-node memcg generation counter, whose reminder (mod MEMCG_NR_GENS) indexes
511 * 1. MEMCG_LRU_HEAD, which moves a memcg to the head of a random bin in its
513 * 2. MEMCG_LRU_TAIL, which moves a memcg to the tail of a random bin in its
515 * 3. MEMCG_LRU_OLD, which moves a memcg to the head of a random bin in the old
517 * 4. MEMCG_LRU_YOUNG, which moves a memcg to the tail of a random bin in the
523 * 2. The first attempt to reclaim a memcg below low, which triggers
525 * 3. The first attempt to reclaim a memcg offlined or below reclaimable size
527 * 4. The second attempt to reclaim a memcg offlined or below reclaimable size
529 * 5. Attempting to reclaim a memcg below min, which triggers MEMCG_LRU_YOUNG;
531 * 7. Offlining a memcg, which triggers MEMCG_LRU_OLD.
536 * memcgs. For memcg reclaim, it still relies on mem_cgroup_iter().
545 /* the per-node memcg generation counter */
547 /* each memcg has one lru_gen_folio per node */
559 void lru_gen_init_memcg(struct mem_cgroup *memcg);
560 void lru_gen_exit_memcg(struct mem_cgroup *memcg);
561 void lru_gen_online_memcg(struct mem_cgroup *memcg);
562 void lru_gen_offline_memcg(struct mem_cgroup *memcg);
563 void lru_gen_release_memcg(struct mem_cgroup *memcg);
564 void lru_gen_soft_reclaim(struct mem_cgroup *memcg, int nid);
580 static inline void lru_gen_init_memcg(struct mem_cgroup *memcg)
584 static inline void lru_gen_exit_memcg(struct mem_cgroup *memcg)
588 static inline void lru_gen_online_memcg(struct mem_cgroup *memcg)
592 static inline void lru_gen_offline_memcg(struct mem_cgroup *memcg)
596 static inline void lru_gen_release_memcg(struct mem_cgroup *memcg)
600 static inline void lru_gen_soft_reclaim(struct mem_cgroup *memcg, int nid)
608 /* per lruvec lru_lock for memcg */