Lines Matching defs:map
106 * @map: crush_map pointer
108 void crush_destroy(struct crush_map *map)
111 if (map->buckets) {
113 for (b = 0; b < map->max_buckets; b++) {
114 if (map->buckets[b] == NULL)
116 crush_destroy_bucket(map->buckets[b]);
118 kfree(map->buckets);
122 if (map->rules) {
124 for (b = 0; b < map->max_rules; b++)
125 crush_destroy_rule(map->rules[b]);
126 kfree(map->rules);
130 kfree(map->choose_tries);
132 clear_crush_names(&map->type_names);
133 clear_crush_names(&map->names);
134 clear_choose_args(map);
136 kfree(map);