Lines Matching refs:rhs
661 int ceph_pg_compare(const struct ceph_pg *lhs, const struct ceph_pg *rhs) in ceph_pg_compare() argument
663 if (lhs->pool < rhs->pool) in ceph_pg_compare()
665 if (lhs->pool > rhs->pool) in ceph_pg_compare()
667 if (lhs->seed < rhs->seed) in ceph_pg_compare()
669 if (lhs->seed > rhs->seed) in ceph_pg_compare()
675 int ceph_spg_compare(const struct ceph_spg *lhs, const struct ceph_spg *rhs) in ceph_spg_compare() argument
679 ret = ceph_pg_compare(&lhs->pgid, &rhs->pgid); in ceph_spg_compare()
683 if (lhs->shard < rhs->shard) in ceph_spg_compare()
685 if (lhs->shard > rhs->shard) in ceph_spg_compare()
2220 const struct ceph_osds *rhs) in __osds_equal() argument
2222 if (lhs->size == rhs->size && in __osds_equal()
2223 !memcmp(lhs->osds, rhs->osds, rhs->size * sizeof(rhs->osds[0]))) in __osds_equal()
2233 const struct ceph_osds *rhs) in osds_equal() argument
2235 if (__osds_equal(lhs, rhs) && in osds_equal()
2236 lhs->primary == rhs->primary) in osds_equal()