Lines Matching refs:crush
1147 if (map->crush) in ceph_osdmap_destroy()
1148 crush_destroy(map->crush); in ceph_osdmap_destroy()
1261 static int osdmap_set_crush(struct ceph_osdmap *map, struct crush_map *crush) in osdmap_set_crush() argument
1265 if (IS_ERR(crush)) in osdmap_set_crush()
1266 return PTR_ERR(crush); in osdmap_set_crush()
1268 work = alloc_workspace(crush); in osdmap_set_crush()
1270 crush_destroy(crush); in osdmap_set_crush()
1274 if (map->crush) in osdmap_set_crush()
1275 crush_destroy(map->crush); in osdmap_set_crush()
1277 map->crush = crush; in osdmap_set_crush()
2501 arg_map = lookup_choose_arg_map(&map->crush->choose_args, in do_crush()
2504 arg_map = lookup_choose_arg_map(&map->crush->choose_args, in do_crush()
2507 work = get_workspace(&map->crush_wsm, map->crush); in do_crush()
2508 r = crush_do_rule(map->crush, ruleno, x, result, result_max, in do_crush()
2563 ruleno = crush_find_rule(osdmap->crush, pi->crush_ruleset, pi->type, in pg_to_raw_osds()
3099 id = get_immediate_parent(osdmap->crush, id, &type_id, &loc); in ceph_get_crush_locality()