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