Lines Matching defs:memcg

255 	 * Per-memcg and per-lruvec counters track memory, consumed
451 /* the memcg generation this lru_gen_folio belongs to */
508 * An onlining memcg is added to the tail of a random bin in the old generation.
510 * per-node memcg generation counter, whose reminder (mod MEMCG_NR_GENS) indexes
514 * 1. MEMCG_LRU_HEAD, which moves a memcg to the head of a random bin in its
516 * 2. MEMCG_LRU_TAIL, which moves a memcg to the tail of a random bin in its
518 * 3. MEMCG_LRU_OLD, which moves a memcg to the head of a random bin in the old
520 * 4. MEMCG_LRU_YOUNG, which moves a memcg to the tail of a random bin in the
526 * 2. The first attempt to reclaim a memcg below low, which triggers
528 * 3. The first attempt to reclaim a memcg offlined or below reclaimable size
530 * 4. The second attempt to reclaim a memcg offlined or below reclaimable size
532 * 5. Attempting to reclaim a memcg below min, which triggers MEMCG_LRU_YOUNG;
534 * 7. Offlining a memcg, which triggers MEMCG_LRU_OLD.
539 * memcgs. For memcg reclaim, it still relies on mem_cgroup_iter().
548 /* the per-node memcg generation counter */
550 /* each memcg has one lru_gen_folio per node */
562 void lru_gen_init_memcg(struct mem_cgroup *memcg);
563 void lru_gen_exit_memcg(struct mem_cgroup *memcg);
564 void lru_gen_online_memcg(struct mem_cgroup *memcg);
565 void lru_gen_offline_memcg(struct mem_cgroup *memcg);
566 void lru_gen_release_memcg(struct mem_cgroup *memcg);
567 void lru_gen_soft_reclaim(struct mem_cgroup *memcg, int nid);
583 static inline void lru_gen_init_memcg(struct mem_cgroup *memcg)
587 static inline void lru_gen_exit_memcg(struct mem_cgroup *memcg)
591 static inline void lru_gen_online_memcg(struct mem_cgroup *memcg)
595 static inline void lru_gen_offline_memcg(struct mem_cgroup *memcg)
599 static inline void lru_gen_release_memcg(struct mem_cgroup *memcg)
603 static inline void lru_gen_soft_reclaim(struct mem_cgroup *memcg, int nid)
611 /* per lruvec lru_lock for memcg */