Lines Matching refs:map
116 void crush_destroy(struct crush_map *map) in crush_destroy() argument
119 if (map->buckets) { in crush_destroy()
121 for (b = 0; b < map->max_buckets; b++) { in crush_destroy()
122 if (map->buckets[b] == NULL) in crush_destroy()
124 crush_destroy_bucket(map->buckets[b]); in crush_destroy()
126 kfree(map->buckets); in crush_destroy()
130 if (map->rules) { in crush_destroy()
132 for (b = 0; b < map->max_rules; b++) in crush_destroy()
133 crush_destroy_rule(map->rules[b]); in crush_destroy()
134 kfree(map->rules); in crush_destroy()
137 kfree(map); in crush_destroy()