libceph: make pgid_cmp() global

calc_target() code is going to need to know how to compare PGs.  Take
lhs and rhs pgid by const * while at it.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
Ilya Dryomov
2016-04-28 16:07:23 +02:00
parent f81f16339a
commit f984cb76cc
2 changed files with 18 additions and 15 deletions

View File

@@ -24,6 +24,8 @@ struct ceph_pg {
uint32_t seed;
};
int ceph_pg_compare(const struct ceph_pg *lhs, const struct ceph_pg *rhs);
#define CEPH_POOL_FLAG_HASHPSPOOL 1
struct ceph_pg_pool_info {