Lines Matching refs:lhs
580 int ceph_pg_compare(const struct ceph_pg *lhs, const struct ceph_pg *rhs) in ceph_pg_compare() argument
582 if (lhs->pool < rhs->pool) in ceph_pg_compare()
584 if (lhs->pool > rhs->pool) in ceph_pg_compare()
586 if (lhs->seed < rhs->seed) in ceph_pg_compare()
588 if (lhs->seed > rhs->seed) in ceph_pg_compare()
594 int ceph_spg_compare(const struct ceph_spg *lhs, const struct ceph_spg *rhs) in ceph_spg_compare() argument
598 ret = ceph_pg_compare(&lhs->pgid, &rhs->pgid); in ceph_spg_compare()
602 if (lhs->shard < rhs->shard) in ceph_spg_compare()
604 if (lhs->shard > rhs->shard) in ceph_spg_compare()
2012 static bool __osds_equal(const struct ceph_osds *lhs, in __osds_equal() argument
2015 if (lhs->size == rhs->size && in __osds_equal()
2016 !memcmp(lhs->osds, rhs->osds, rhs->size * sizeof(rhs->osds[0]))) in __osds_equal()
2025 static bool osds_equal(const struct ceph_osds *lhs, in osds_equal() argument
2028 if (__osds_equal(lhs, rhs) && in osds_equal()
2029 lhs->primary == rhs->primary) in osds_equal()