summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2016-04-28 14:07:23 (GMT)
committerIlya Dryomov <idryomov@gmail.com>2016-05-25 22:36:25 (GMT)
commitf984cb76cc5fb9fc76d6abb6c4694a5412e3f49b (patch)
treee9f60522c2a91fddceaca57bd8c45e6e67f7db9e /include
parentf81f16339a05775df600b2ff75a79be1864975c1 (diff)
downloadlinux-f984cb76cc5fb9fc76d6abb6c4694a5412e3f49b.tar.xz
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ceph/osdmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ceph/osdmap.h b/include/linux/ceph/osdmap.h
index 3fd978a..7783237 100644
--- a/include/linux/ceph/osdmap.h
+++ b/include/linux/ceph/osdmap.h
@@ -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 {