Home
last modified time | relevance | path

Searched refs:shrinker_id (Results 1 – 2 of 2) sorted by relevance

/linux/mm/
H A Dshrinker.c181 static inline int shrinker_id_to_index(int shrinker_id) in shrinker_id_to_index() argument
183 return shrinker_id / SHRINKER_UNIT_BITS; in shrinker_id_to_index()
186 static inline int shrinker_id_to_offset(int shrinker_id) in shrinker_id_to_offset() argument
188 return shrinker_id % SHRINKER_UNIT_BITS; in shrinker_id_to_offset()
196 void set_shrinker_bit(struct mem_cgroup *memcg, int nid, int shrinker_id) in set_shrinker_bit() argument
198 if (shrinker_id >= 0 && memcg && !mem_cgroup_is_root(memcg)) { in set_shrinker_bit()
204 unit = info->unit[shrinker_id_to_index(shrinker_id)]; in set_shrinker_bit()
205 if (!WARN_ON_ONCE(shrinker_id >= info->map_nr_max)) { in set_shrinker_bit()
208 set_bit(shrinker_id_to_offset(shrinker_id), unit->map); in set_shrinker_bit()
534 int shrinker_id = calc_shrinker_id(index, offset); in shrink_slab_memcg() local
[all …]
H A Dlist_lru.c49 return lru->shrinker_id; in lru_shrinker_id()
573 lru->shrinker_id = shrinker->id; in __list_lru_init()
575 lru->shrinker_id = -1; in __list_lru_init()
608 lru->shrinker_id = -1; in list_lru_destroy()