Lines Matching refs:lhs
581 int ceph_pg_compare(const struct ceph_pg *lhs, const struct ceph_pg *rhs) in ceph_pg_compare() argument
583 if (lhs->pool < rhs->pool) in ceph_pg_compare()
585 if (lhs->pool > rhs->pool) in ceph_pg_compare()
587 if (lhs->seed < rhs->seed) in ceph_pg_compare()
589 if (lhs->seed > rhs->seed) in ceph_pg_compare()
595 int ceph_spg_compare(const struct ceph_spg *lhs, const struct ceph_spg *rhs) in ceph_spg_compare() argument
599 ret = ceph_pg_compare(&lhs->pgid, &rhs->pgid); in ceph_spg_compare()
603 if (lhs->shard < rhs->shard) in ceph_spg_compare()
605 if (lhs->shard > rhs->shard) in ceph_spg_compare()
1991 static bool __osds_equal(const struct ceph_osds *lhs, in __osds_equal() argument
1994 if (lhs->size == rhs->size && in __osds_equal()
1995 !memcmp(lhs->osds, rhs->osds, rhs->size * sizeof(rhs->osds[0]))) in __osds_equal()
2004 static bool osds_equal(const struct ceph_osds *lhs, in osds_equal() argument
2007 if (__osds_equal(lhs, rhs) && in osds_equal()
2008 lhs->primary == rhs->primary) in osds_equal()