Home
last modified time | relevance | path

Searched refs:osdmap (Results 1 – 5 of 5) sorted by relevance

/net/ceph/
Ddebugfs.c58 if (client->osdc.osdmap == NULL) in osdmap_show()
60 seq_printf(s, "epoch %d\n", client->osdc.osdmap->epoch); in osdmap_show()
62 (client->osdc.osdmap->flags & CEPH_OSDMAP_NEARFULL) ? in osdmap_show()
64 (client->osdc.osdmap->flags & CEPH_OSDMAP_FULL) ? in osdmap_show()
66 for (n = rb_first(&client->osdc.osdmap->pg_pools); n; n = rb_next(n)) { in osdmap_show()
73 for (i = 0; i < client->osdc.osdmap->max_osd; i++) { in osdmap_show()
75 &client->osdc.osdmap->osd_addr[i]; in osdmap_show()
76 int state = client->osdc.osdmap->osd_state[i]; in osdmap_show()
81 ((client->osdc.osdmap->osd_weight[i]*100) >> 16), in osdmap_show()
Dosd_client.c1033 peer_addr = &osdc->osdmap->osd_addr[osd->o_osd]; in __reset_osd()
1248 err = ceph_calc_ceph_pg(&pgid, req->r_oid, osdc->osdmap, in __map_request()
1256 err = ceph_calc_pg_acting(osdc->osdmap, pgid, acting); in __map_request()
1298 &osdc->osdmap->osd_addr[o]); in __map_request()
1327 put_unaligned_le32(osdc->osdmap->epoch, req->r_request_osdmap_epoch); in __send_request()
1596 if (!ceph_osd_is_up(osdc->osdmap, osd->o_osd) || in reset_changed_osds()
1598 ceph_osd_addr(osdc->osdmap, in reset_changed_osds()
1704 dout("handle_map have %u\n", osdc->osdmap ? osdc->osdmap->epoch : 0); in ceph_osdc_handle_map()
1725 if (osdc->osdmap && osdc->osdmap->epoch+1 == epoch) { in ceph_osdc_handle_map()
1729 osdc->osdmap, in ceph_osdc_handle_map()
[all …]
Dosdmap.c1097 struct ceph_osdmap *osdmap, uint64_t pool) in ceph_calc_ceph_pg() argument
1101 BUG_ON(!osdmap); in ceph_calc_ceph_pg()
1102 pool_info = __lookup_pg_pool(&osdmap->pg_pools, pool); in ceph_calc_ceph_pg()
1117 static int *calc_pg_raw(struct ceph_osdmap *osdmap, struct ceph_pg pgid, in calc_pg_raw() argument
1126 pool = __lookup_pg_pool(&osdmap->pg_pools, pgid.pool); in calc_pg_raw()
1133 pg = __lookup_pg_mapping(&osdmap->pg_temp, pgid); in calc_pg_raw()
1140 ruleno = crush_find_rule(osdmap->crush, pool->crush_ruleset, in calc_pg_raw()
1166 r = crush_do_rule(osdmap->crush, ruleno, pps, osds, in calc_pg_raw()
1168 osdmap->osd_weight); in calc_pg_raw()
1182 int ceph_calc_pg_acting(struct ceph_osdmap *osdmap, struct ceph_pg pgid, in ceph_calc_pg_acting() argument
[all …]
DMakefile8 osd_client.o osdmap.o crush/crush.o crush/mapper.o crush/hash.o \
Dceph_common.c540 client->osdc.osdmap && client->osdc.osdmap->epoch; in have_mon_and_osd_map()