Lines Matching refs:primary
2252 lhs->primary == rhs->primary) in osds_equal()
2261 if (set->size > 0 && set->primary >= 0) in osds_valid()
2265 if (!set->size && set->primary == -1) in osds_valid()
2269 if (set->size > 0 && set->primary == -1) { in osds_valid()
2287 dest->primary = src->primary; in ceph_osds_copy()
2364 if (old_acting->primary != new_acting->primary) in primary_changed()
2367 if (calc_pg_rank(old_acting->primary, old_acting) != in primary_changed()
2368 calc_pg_rank(new_acting->primary, new_acting)) in primary_changed()
2666 BUG_ON(set->primary != -1); in raw_to_up_osds()
2682 set->primary = set->osds[0]; in raw_to_up_osds()
2689 set->primary = set->osds[i]; in raw_to_up_osds()
2752 up->primary = up->osds[pos]; in apply_primary_affinity()
2758 up->osds[0] = up->primary; in apply_primary_affinity()
2797 temp->primary = temp->osds[i]; in get_temp_osds()
2806 temp->primary = pg->primary_temp.osd; in get_temp_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()
2862 if (acting.osds[i] == acting.primary) { in ceph_pg_to_primary_shard()
2886 return acting.primary; in ceph_pg_to_acting_primary()