Lines Matching refs:pgid
399 dout("__insert_pg_mapping %llx %p\n", *(u64 *)&new->pgid, new); in __insert_pg_mapping()
403 c = pgid_cmp(new->pgid, pg->pgid); in __insert_pg_mapping()
418 struct ceph_pg pgid) in __lookup_pg_mapping() argument
426 c = pgid_cmp(pgid, pg->pgid); in __lookup_pg_mapping()
433 pgid.pool, pgid.seed, pg); in __lookup_pg_mapping()
440 static int __remove_pg_mapping(struct rb_root *root, struct ceph_pg pgid) in __remove_pg_mapping() argument
442 struct ceph_pg_mapping *pg = __lookup_pg_mapping(root, pgid); in __remove_pg_mapping()
445 dout("__remove_pg_mapping %lld.%x %p\n", pgid.pool, pgid.seed, in __remove_pg_mapping()
451 dout("__remove_pg_mapping %lld.%x dne\n", pgid.pool, pgid.seed); in __remove_pg_mapping()
851 struct ceph_pg pgid; in __decode_pg_temp() local
855 ret = ceph_decode_pgid(p, end, &pgid); in __decode_pg_temp()
861 ret = __remove_pg_mapping(&map->pg_temp, pgid); in __decode_pg_temp()
876 pg->pgid = pgid; in __decode_pg_temp()
912 struct ceph_pg pgid; in __decode_primary_temp() local
916 ret = ceph_decode_pgid(p, end, &pgid); in __decode_primary_temp()
922 ret = __remove_pg_mapping(&map->primary_temp, pgid); in __decode_primary_temp()
932 pg->pgid = pgid; in __decode_primary_temp()
1497 struct ceph_pg pgid, u32 pps, int *osds) in pg_to_raw_osds() argument
1507 pgid.pool, pool->crush_ruleset, pool->type, in pg_to_raw_osds()
1517 len, ruleno, pgid.pool, pool->crush_ruleset, in pg_to_raw_osds()
1640 struct ceph_pg_pool_info *pool, struct ceph_pg pgid, in apply_temps() argument
1649 pgid.seed = ceph_stable_mod(pgid.seed, pool->pg_num, in apply_temps()
1653 pg = __lookup_pg_mapping(&osdmap->pg_temp, pgid); in apply_temps()
1682 pg = __lookup_pg_mapping(&osdmap->primary_temp, pgid); in apply_temps()
1696 int ceph_calc_pg_acting(struct ceph_osdmap *osdmap, struct ceph_pg pgid, in ceph_calc_pg_acting() argument
1703 pool = __lookup_pg_pool(&osdmap->pg_pools, pgid.pool); in ceph_calc_pg_acting()
1712 ceph_stable_mod(pgid.seed, pool->pgp_num, in ceph_calc_pg_acting()
1714 pgid.pool); in ceph_calc_pg_acting()
1722 pps = ceph_stable_mod(pgid.seed, pool->pgp_num, in ceph_calc_pg_acting()
1724 (unsigned)pgid.pool; in ceph_calc_pg_acting()
1727 len = pg_to_raw_osds(osdmap, pool, pgid, pps, osds); in ceph_calc_pg_acting()
1737 len = apply_temps(osdmap, pool, pgid, osds, len, primary); in ceph_calc_pg_acting()
1745 int ceph_calc_pg_primary(struct ceph_osdmap *osdmap, struct ceph_pg pgid) in ceph_calc_pg_primary() argument
1750 ceph_calc_pg_acting(osdmap, pgid, osds, &primary); in ceph_calc_pg_primary()