Lines Matching refs:unit

23 	struct shrinker_info_unit **unit;  in shrinker_unit_free()  local
29 unit = info->unit; in shrinker_unit_free()
33 if (!unit[i]) in shrinker_unit_free()
36 kfree(unit[i]); in shrinker_unit_free()
37 unit[i] = NULL; in shrinker_unit_free()
44 struct shrinker_info_unit *unit; in shrinker_unit_alloc() local
50 unit = kzalloc_node(sizeof(*unit), GFP_KERNEL, nid); in shrinker_unit_alloc()
51 if (!unit) { in shrinker_unit_alloc()
56 new->unit[i] = unit; in shrinker_unit_alloc()
137 memcpy(new->unit, old->unit, old_size); in expand_one_shrinker_info()
200 struct shrinker_info_unit *unit; in set_shrinker_bit() local
204 unit = info->unit[shrinker_id_to_index(shrinker_id)]; in set_shrinker_bit()
208 set_bit(shrinker_id_to_offset(shrinker_id), unit->map); in set_shrinker_bit()
256 struct shrinker_info_unit *unit; in xchg_nr_deferred_memcg() local
261 unit = info->unit[shrinker_id_to_index(shrinker->id)]; in xchg_nr_deferred_memcg()
262 nr_deferred = atomic_long_xchg(&unit->nr_deferred[shrinker_id_to_offset(shrinker->id)], 0); in xchg_nr_deferred_memcg()
272 struct shrinker_info_unit *unit; in add_nr_deferred_memcg() local
277 unit = info->unit[shrinker_id_to_index(shrinker->id)]; in add_nr_deferred_memcg()
279 atomic_long_add_return(nr, &unit->nr_deferred[shrinker_id_to_offset(shrinker->id)]); in add_nr_deferred_memcg()
303 child_unit = child_info->unit[index]; in reparent_shrinker_deferred()
304 parent_unit = parent_info->unit[index]; in reparent_shrinker_deferred()
521 struct shrinker_info_unit *unit; in shrink_slab_memcg() local
523 unit = info->unit[index]; in shrink_slab_memcg()
527 for_each_set_bit(offset, unit->map, SHRINKER_UNIT_BITS) { in shrink_slab_memcg()
539 clear_bit(offset, unit->map); in shrink_slab_memcg()
552 clear_bit(offset, unit->map); in shrink_slab_memcg()