Home
last modified time | relevance | path

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

/linux-6.1.9/net/ceph/
Dosdmap.c2427 int ceph_object_locator_to_pg(struct ceph_osdmap *osdmap, in ceph_object_locator_to_pg() argument
2434 pi = ceph_pg_pool_by_id(osdmap, oloc->pool); in ceph_object_locator_to_pg()
2515 static void remove_nonexistent_osds(struct ceph_osdmap *osdmap, in remove_nonexistent_osds() argument
2526 if (!ceph_osd_exists(osdmap, set->osds[i])) { in remove_nonexistent_osds()
2537 if (!ceph_osd_exists(osdmap, set->osds[i])) in remove_nonexistent_osds()
2549 static void pg_to_raw_osds(struct ceph_osdmap *osdmap, in pg_to_raw_osds() argument
2563 ruleno = crush_find_rule(osdmap->crush, pi->crush_ruleset, pi->type, in pg_to_raw_osds()
2578 len = do_crush(osdmap, ruleno, pps, raw->osds, pi->size, in pg_to_raw_osds()
2579 osdmap->osd_weight, osdmap->max_osd, pi->id); in pg_to_raw_osds()
2588 remove_nonexistent_osds(osdmap, pi, raw); in pg_to_raw_osds()
[all …]
Dosd_client.c1339 peer_addr = &osd->o_osdc->osdmap->osd_addr[osd->o_osd]; in reopen_osd()
1384 &osdc->osdmap->osd_addr[osd->o_osd]); in lookup_create_osd()
1439 for (n = rb_first(&osdc->osdmap->pg_pools); n; n = rb_next(n)) { in have_pool_full()
1454 pi = ceph_pg_pool_by_id(osdc->osdmap, pool_id); in pool_full()
1477 (osdc->osdmap->epoch < osdc->epoch_barrier); in target_should_be_paused()
1502 locality = ceph_get_crush_locality(osdc->osdmap, in pick_closest_replica()
1543 t->epoch = osdc->osdmap->epoch; in calc_target()
1544 pi = ceph_pg_pool_by_id(osdc->osdmap, t->base_oloc.pool); in calc_target()
1551 if (osdc->osdmap->epoch == pi->last_force_request_resend) { in calc_target()
1569 pi = ceph_pg_pool_by_id(osdc->osdmap, t->target_oloc.pool); in calc_target()
[all …]
DMakefile10 osd_client.o osdmap.o crush/crush.o crush/mapper.o crush/hash.o \
Dceph_common.c794 client->osdc.osdmap && client->osdc.osdmap->epoch; in have_mon_and_osd_map()
858 if (client->osdc.osdmap->epoch >= newest_epoch) in ceph_wait_for_latest_osdmap()
Ddebugfs.c59 struct ceph_osdmap *map = osdc->osdmap; in osdmap_show()
392 DEFINE_SHOW_ATTRIBUTE(osdmap);
/linux-6.1.9/include/linux/ceph/
Dosdmap.h298 int ceph_object_locator_to_pg(struct ceph_osdmap *osdmap,
303 void ceph_pg_to_up_acting_osds(struct ceph_osdmap *osdmap,
308 bool ceph_pg_to_primary_shard(struct ceph_osdmap *osdmap,
312 int ceph_pg_to_acting_primary(struct ceph_osdmap *osdmap,
330 int ceph_get_crush_locality(struct ceph_osdmap *osdmap, int id,
Dosd_client.h350 struct ceph_osdmap *osdmap; /* current map */ member
383 return osdc->osdmap->flags & flag; in ceph_osdmap_flag()
/linux-6.1.9/fs/ceph/
Dioctl.c215 r = ceph_object_locator_to_pg(osdc->osdmap, &oid, &oloc, &pgid); in ceph_ioctl_get_dataloc()
223 dl.osd = ceph_pg_to_acting_primary(osdc->osdmap, &pgid); in ceph_ioctl_get_dataloc()
226 ceph_osd_addr(osdc->osdmap, dl.osd); in ceph_ioctl_get_dataloc()
Dxattr.c74 pool_name = ceph_pg_pool_name_by_id(osdc->osdmap, pool); in ceph_vxattrcb_layout()
170 pool_name = ceph_pg_pool_name_by_id(osdc->osdmap, pool); in ceph_vxattrcb_layout_pool()
1108 cpu_to_le32(osdc->osdmap->epoch); in ceph_sync_setxattr()
Dfile.c1819 map_flags = osdc->osdmap->flags; in ceph_write_iter()
1820 pool_flags = ceph_pg_pool_flags(osdc->osdmap, ci->i_layout.pool_id); in ceph_write_iter()
/linux-6.1.9/drivers/block/
Drbd.c5997 pool_name = ceph_pg_pool_name_by_id(osdc->osdmap, spec->pool_id); in rbd_spec_fill_names()
7002 rc = ceph_pg_poolid_by_name(rbdc->client->osdc.osdmap, spec->pool_name); in do_rbd_add()