Searched refs:SHRINKER_UNIT_BITS (Results 1 - 2 of 2) sorted by relevance

/linux-master/include/linux/
H A Dshrinker.h10 #define SHRINKER_UNIT_BITS BITS_PER_LONG macro
17 atomic_long_t nr_deferred[SHRINKER_UNIT_BITS];
18 DECLARE_BITMAP(map, SHRINKER_UNIT_BITS);
/linux-master/mm/
H A Dshrinker.c18 return (DIV_ROUND_UP(nr_items, SHRINKER_UNIT_BITS) * sizeof(struct shrinker_info_unit *));
30 nr = DIV_ROUND_UP(info->map_nr_max, SHRINKER_UNIT_BITS);
45 int nr = DIV_ROUND_UP(new->map_nr_max, SHRINKER_UNIT_BITS);
46 int start = old ? DIV_ROUND_UP(old->map_nr_max, SHRINKER_UNIT_BITS) : 0;
151 int new_nr_max = round_up(new_id + 1, SHRINKER_UNIT_BITS);
181 return shrinker_id / SHRINKER_UNIT_BITS;
186 return shrinker_id % SHRINKER_UNIT_BITS;
191 return index * SHRINKER_UNIT_BITS + offset;
303 for (offset = 0; offset < SHRINKER_UNIT_BITS; offset++) {
525 for_each_set_bit(offset, unit->map, SHRINKER_UNIT_BITS) {
[all...]

Completed in 140 milliseconds