Lines Matching refs:pgid
679 ret = ceph_pg_compare(&lhs->pgid, &rhs->pgid);
711 * rbtree of pg_mapping for handling pg_temp (explicit mapping of pgid
714 DEFINE_RB_FUNCS2(pg_mapping, struct ceph_pg_mapping, pgid, ceph_pg_compare,
1384 struct ceph_pg pgid;
1387 ret = ceph_decode_pgid(p, end, &pgid);
1391 pg = lookup_pg_mapping(mapping_root, &pgid);
1404 pg->pgid = pgid; /* struct */
2255 bool ceph_pg_is_split(const struct ceph_pg *pgid, u32 old_pg_num,
2262 WARN_ON(pgid->seed >= old_pg_num);
2268 u32 s = next_bit | pgid->seed;
2270 if (s < old_pg_num || s == pgid->seed)
2276 if (s == pgid->seed)
2297 const struct ceph_pg *pgid)
2303 ceph_pg_is_split(pgid, old_pg_num, new_pg_num) ||
2413 struct ceph_pg *pgid)
2415 pgid->pool = raw_pgid->pool;
2416 pgid->seed = ceph_stable_mod(raw_pgid->seed, pi->pg_num,
2558 const struct ceph_pg *pgid,
2564 pg = lookup_pg_mapping(&osdmap->pg_upmap, pgid);
2583 pg = lookup_pg_mapping(&osdmap->pg_upmap_items, pgid);
2737 const struct ceph_pg *pgid,
2746 pg = lookup_pg_mapping(&osdmap->pg_temp, pgid);
2769 pg = lookup_pg_mapping(&osdmap->primary_temp, pgid);
2787 struct ceph_pg pgid;
2791 raw_pg_to_pg(pi, raw_pgid, &pgid);
2794 apply_upmap(osdmap, &pgid, up);
2797 get_temp_osds(osdmap, pi, &pgid, acting);
2812 struct ceph_pg pgid;
2817 raw_pg_to_pg(pi, raw_pgid, &pgid);
2820 spgid->pgid = pgid; /* struct */
2825 ceph_pg_to_up_acting_osds(osdmap, pi, &pgid, &up, &acting);
2828 spgid->pgid = pgid; /* struct */