aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ceph
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2016-04-28 16:07:23 +0200
committerIlya Dryomov <idryomov@gmail.com>2016-05-26 00:36:25 +0200
commitf984cb76cc5fb9fc76d6abb6c4694a5412e3f49b (patch)
treee9f60522c2a91fddceaca57bd8c45e6e67f7db9e /include/linux/ceph
parentlibceph: rename ceph_calc_pg_primary() (diff)
downloadlinux-dev-f984cb76cc5fb9fc76d6abb6c4694a5412e3f49b.tar.xz
linux-dev-f984cb76cc5fb9fc76d6abb6c4694a5412e3f49b.zip
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/linux/ceph')
-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 3fd978a1639b..7783237ab06c 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 {