Home
last modified time | relevance | path

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

/linux-3.4.99/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.c747 } else if (memcmp(&osdc->osdmap->osd_addr[osd->o_osd], in __reset_osd()
760 &osdc->osdmap->osd_addr[osd->o_osd]); in __reset_osd()
969 &req->r_file_layout, osdc->osdmap); in __map_request()
977 err = ceph_calc_pg_acting(osdc->osdmap, pgid, acting); in __map_request()
1019 &osdc->osdmap->osd_addr[o]); in __map_request()
1047 reqhead->osdmap_epoch = cpu_to_le32(osdc->osdmap->epoch); in __send_request()
1257 if (!ceph_osd_is_up(osdc->osdmap, osd->o_osd) || in reset_changed_osds()
1259 ceph_osd_addr(osdc->osdmap, in reset_changed_osds()
1373 dout("handle_map have %u\n", osdc->osdmap ? osdc->osdmap->epoch : 0); in ceph_osdc_handle_map()
1385 was_full = ceph_osdmap_flag(osdc->osdmap, CEPH_OSDMAP_FULL); in ceph_osdc_handle_map()
[all …]
Dosdmap.c1034 struct ceph_osdmap *osdmap) in ceph_calc_object_layout() argument
1043 BUG_ON(!osdmap); in ceph_calc_object_layout()
1045 pool = __lookup_pg_pool(&osdmap->pg_pools, poolid); in ceph_calc_object_layout()
1077 static int *calc_pg_raw(struct ceph_osdmap *osdmap, struct ceph_pg pgid, in calc_pg_raw() argument
1090 pool = __lookup_pg_pool(&osdmap->pg_pools, poolid); in calc_pg_raw()
1102 pg = __lookup_pg_mapping(&osdmap->pg_temp, pgid); in calc_pg_raw()
1109 ruleno = crush_find_rule(osdmap->crush, pool->v.crush_ruleset, in calc_pg_raw()
1119 if (preferred >= osdmap->max_osd || in calc_pg_raw()
1120 preferred >= osdmap->crush->max_devices) in calc_pg_raw()
1132 *num = crush_do_rule(osdmap->crush, ruleno, pps, osds, in calc_pg_raw()
[all …]
DMakefile8 osd_client.o osdmap.o crush/crush.o crush/mapper.o crush/hash.o \
Dceph_common.c518 client->osdc.osdmap && client->osdc.osdmap->epoch; in have_mon_and_osd_map()
/linux-3.4.99/include/linux/ceph/
Dosdmap.h122 struct ceph_osdmap *osdmap);
123 extern int ceph_calc_pg_acting(struct ceph_osdmap *osdmap, struct ceph_pg pgid,
125 extern int ceph_calc_pg_primary(struct ceph_osdmap *osdmap,
Dosd_client.h124 struct ceph_osdmap *osdmap; /* current map */ member
/linux-3.4.99/fs/ceph/
Dioctl.c216 osdc->osdmap); in ceph_ioctl_get_dataloc()
219 dl.osd = ceph_calc_pg_primary(osdc->osdmap, pgid); in ceph_ioctl_get_dataloc()
222 ceph_osd_addr(osdc->osdmap, dl.osd); in ceph_ioctl_get_dataloc()
Dfile.c715 if (ceph_osdmap_flag(osdc->osdmap, CEPH_OSDMAP_FULL)) in ceph_aio_write()
754 || ceph_osdmap_flag(osdc->osdmap, CEPH_OSDMAP_NEARFULL))) { in ceph_aio_write()
/linux-3.4.99/drivers/block/
Drbd.c2335 rc = ceph_pg_poolid_by_name(osdc->osdmap, rbd_dev->pool_name); in rbd_add()