Lines Matching refs:map
112 void crush_destroy(struct crush_map *map) in crush_destroy() argument
115 if (map->buckets) { in crush_destroy()
117 for (b = 0; b < map->max_buckets; b++) { in crush_destroy()
118 if (map->buckets[b] == NULL) in crush_destroy()
120 crush_destroy_bucket(map->buckets[b]); in crush_destroy()
122 kfree(map->buckets); in crush_destroy()
126 if (map->rules) { in crush_destroy()
128 for (b = 0; b < map->max_rules; b++) in crush_destroy()
129 crush_destroy_rule(map->rules[b]); in crush_destroy()
130 kfree(map->rules); in crush_destroy()
134 kfree(map->choose_tries); in crush_destroy()
136 kfree(map); in crush_destroy()