Searched refs:SHRINKER_UNIT_BITS (Results 1 – 2 of 2) sorted by relevance
10 #define SHRINKER_UNIT_BITS BITS_PER_LONG macro17 atomic_long_t nr_deferred[SHRINKER_UNIT_BITS];18 DECLARE_BITMAP(map, SHRINKER_UNIT_BITS);
18 return (DIV_ROUND_UP(nr_items, SHRINKER_UNIT_BITS) * sizeof(struct shrinker_info_unit *)); in shrinker_unit_size()30 nr = DIV_ROUND_UP(info->map_nr_max, SHRINKER_UNIT_BITS); in shrinker_unit_free()45 int nr = DIV_ROUND_UP(new->map_nr_max, SHRINKER_UNIT_BITS); in shrinker_unit_alloc()46 int start = old ? DIV_ROUND_UP(old->map_nr_max, SHRINKER_UNIT_BITS) : 0; in shrinker_unit_alloc()153 int new_nr_max = round_up(new_id + 1, SHRINKER_UNIT_BITS); in expand_shrinker_info()183 return shrinker_id / SHRINKER_UNIT_BITS; in shrinker_id_to_index()188 return shrinker_id % SHRINKER_UNIT_BITS; in shrinker_id_to_offset()193 return index * SHRINKER_UNIT_BITS + offset; in calc_shrinker_id()305 for (offset = 0; offset < SHRINKER_UNIT_BITS; offset++) { in reparent_shrinker_deferred()527 for_each_set_bit(offset, unit->map, SHRINKER_UNIT_BITS) { in shrink_slab_memcg()