Lines Matching defs:pgid
709 ret = ceph_pg_compare(&lhs->pgid, &rhs->pgid);
741 * rbtree of pg_mapping for handling pg_temp (explicit mapping of pgid
744 DEFINE_RB_FUNCS2(pg_mapping, struct ceph_pg_mapping, pgid, ceph_pg_compare,
1402 struct ceph_pg pgid;
1405 ret = ceph_decode_pgid(p, end, &pgid);
1409 pg = lookup_pg_mapping(mapping_root, &pgid);
1422 pg->pgid = pgid; /* struct */
2301 bool ceph_pg_is_split(const struct ceph_pg *pgid, u32 old_pg_num,
2308 WARN_ON(pgid->seed >= old_pg_num);
2314 u32 s = next_bit | pgid->seed;
2316 if (s < old_pg_num || s == pgid->seed)
2322 if (s == pgid->seed)
2343 const struct ceph_pg *pgid)
2349 ceph_pg_is_split(pgid, old_pg_num, new_pg_num) ||
2459 struct ceph_pg *pgid)
2461 pgid->pool = raw_pgid->pool;
2462 pgid->seed = ceph_stable_mod(raw_pgid->seed, pi->pg_num,
2604 const struct ceph_pg *pgid,
2610 pg = lookup_pg_mapping(&osdmap->pg_upmap, pgid);
2629 pg = lookup_pg_mapping(&osdmap->pg_upmap_items, pgid);
2783 const struct ceph_pg *pgid,
2792 pg = lookup_pg_mapping(&osdmap->pg_temp, pgid);
2815 pg = lookup_pg_mapping(&osdmap->primary_temp, pgid);
2834 struct ceph_pg pgid;
2838 raw_pg_to_pg(pi, raw_pgid, &pgid);
2841 apply_upmap(osdmap, &pgid, up);
2844 get_temp_osds(osdmap, pi, &pgid, acting);
2859 struct ceph_pg pgid;
2864 raw_pg_to_pg(pi, raw_pgid, &pgid);
2867 spgid->pgid = pgid; /* struct */
2872 ceph_pg_to_up_acting_osds(osdmap, pi, &pgid, &up, &acting);
2875 spgid->pgid = pgid; /* struct */