Lines Matching defs:lhs
691 int ceph_pg_compare(const struct ceph_pg *lhs, const struct ceph_pg *rhs)
693 if (lhs->pool < rhs->pool)
695 if (lhs->pool > rhs->pool)
697 if (lhs->seed < rhs->seed)
699 if (lhs->seed > rhs->seed)
705 int ceph_spg_compare(const struct ceph_spg *lhs, const struct ceph_spg *rhs)
709 ret = ceph_pg_compare(&lhs->pgid, &rhs->pgid);
713 if (lhs->shard < rhs->shard)
715 if (lhs->shard > rhs->shard)
2246 static bool __osds_equal(const struct ceph_osds *lhs,
2249 if (lhs->size == rhs->size &&
2250 !memcmp(lhs->osds, rhs->osds, rhs->size * sizeof(rhs->osds[0])))
2259 static bool osds_equal(const struct ceph_osds *lhs,
2262 if (__osds_equal(lhs, rhs) &&
2263 lhs->primary == rhs->primary)