Lines Matching refs:pgid
695 ret = ceph_pg_compare(&lhs->pgid, &rhs->pgid);
727 * rbtree of pg_mapping for handling pg_temp (explicit mapping of pgid
730 DEFINE_RB_FUNCS2(pg_mapping, struct ceph_pg_mapping, pgid, ceph_pg_compare,
1400 struct ceph_pg pgid;
1403 ret = ceph_decode_pgid(p, end, &pgid);
1407 pg = lookup_pg_mapping(mapping_root, &pgid);
1420 pg->pgid = pgid; /* struct */
2290 bool ceph_pg_is_split(const struct ceph_pg *pgid, u32 old_pg_num,
2297 WARN_ON(pgid->seed >= old_pg_num);
2303 u32 s = next_bit | pgid->seed;
2305 if (s < old_pg_num || s == pgid->seed)
2311 if (s == pgid->seed)
2332 const struct ceph_pg *pgid)
2338 ceph_pg_is_split(pgid, old_pg_num, new_pg_num) ||
2448 struct ceph_pg *pgid)
2450 pgid->pool = raw_pgid->pool;
2451 pgid->seed = ceph_stable_mod(raw_pgid->seed, pi->pg_num,
2593 const struct ceph_pg *pgid,
2599 pg = lookup_pg_mapping(&osdmap->pg_upmap, pgid);
2618 pg = lookup_pg_mapping(&osdmap->pg_upmap_items, pgid);
2772 const struct ceph_pg *pgid,
2781 pg = lookup_pg_mapping(&osdmap->pg_temp, pgid);
2804 pg = lookup_pg_mapping(&osdmap->primary_temp, pgid);
2822 struct ceph_pg pgid;
2826 raw_pg_to_pg(pi, raw_pgid, &pgid);
2829 apply_upmap(osdmap, &pgid, up);
2832 get_temp_osds(osdmap, pi, &pgid, acting);
2847 struct ceph_pg pgid;
2852 raw_pg_to_pg(pi, raw_pgid, &pgid);
2855 spgid->pgid = pgid; /* struct */
2860 ceph_pg_to_up_acting_osds(osdmap, pi, &pgid, &up, &acting);
2863 spgid->pgid = pgid; /* struct */