Lines Matching refs:lhs
677 int ceph_pg_compare(const struct ceph_pg *lhs, const struct ceph_pg *rhs) in ceph_pg_compare() argument
679 if (lhs->pool < rhs->pool) in ceph_pg_compare()
681 if (lhs->pool > rhs->pool) in ceph_pg_compare()
683 if (lhs->seed < rhs->seed) in ceph_pg_compare()
685 if (lhs->seed > rhs->seed) in ceph_pg_compare()
691 int ceph_spg_compare(const struct ceph_spg *lhs, const struct ceph_spg *rhs) in ceph_spg_compare() argument
695 ret = ceph_pg_compare(&lhs->pgid, &rhs->pgid); in ceph_spg_compare()
699 if (lhs->shard < rhs->shard) in ceph_spg_compare()
701 if (lhs->shard > rhs->shard) in ceph_spg_compare()
2235 static bool __osds_equal(const struct ceph_osds *lhs, in __osds_equal() argument
2238 if (lhs->size == rhs->size && in __osds_equal()
2239 !memcmp(lhs->osds, rhs->osds, rhs->size * sizeof(rhs->osds[0]))) in __osds_equal()
2248 static bool osds_equal(const struct ceph_osds *lhs, in osds_equal() argument
2251 if (__osds_equal(lhs, rhs) && in osds_equal()
2252 lhs->primary == rhs->primary) in osds_equal()