Lines Matching full:acting
2343 static int calc_pg_rank(int osd, const struct ceph_osds *acting) in calc_pg_rank() argument
2347 for (i = 0; i < acting->size; i++) { in calc_pg_rank()
2348 if (acting->osds[i] == osd) in calc_pg_rank()
2810 * Map a PG to its acting set as well as its up set.
2812 * Acting set is used for data mapping purposes, while up set can be
2820 struct ceph_osds *acting) in ceph_pg_to_up_acting_osds() argument
2832 get_temp_osds(osdmap, pi, &pgid, acting); in ceph_pg_to_up_acting_osds()
2833 if (!acting->size) { in ceph_pg_to_up_acting_osds()
2834 memcpy(acting->osds, up->osds, up->size * sizeof(up->osds[0])); in ceph_pg_to_up_acting_osds()
2835 acting->size = up->size; in ceph_pg_to_up_acting_osds()
2836 if (acting->primary == -1) in ceph_pg_to_up_acting_osds()
2837 acting->primary = up->primary; in ceph_pg_to_up_acting_osds()
2839 WARN_ON(!osds_valid(up) || !osds_valid(acting)); in ceph_pg_to_up_acting_osds()
2848 struct ceph_osds up, acting; in ceph_pg_to_primary_shard() local
2860 ceph_pg_to_up_acting_osds(osdmap, pi, &pgid, &up, &acting); in ceph_pg_to_primary_shard()
2861 for (i = 0; i < acting.size; i++) { in ceph_pg_to_primary_shard()
2862 if (acting.osds[i] == acting.primary) { in ceph_pg_to_primary_shard()
2873 * Return acting primary for given PG, or -1 if none.
2879 struct ceph_osds up, acting; in ceph_pg_to_acting_primary() local
2885 ceph_pg_to_up_acting_osds(osdmap, pi, raw_pgid, &up, &acting); in ceph_pg_to_acting_primary()
2886 return acting.primary; in ceph_pg_to_acting_primary()