diff options
| author | Ilya Dryomov <idryomov@gmail.com> | 2016-04-28 10:07:23 -0400 |
|---|---|---|
| committer | Ilya Dryomov <idryomov@gmail.com> | 2016-05-25 18:36:25 -0400 |
| commit | f984cb76cc5fb9fc76d6abb6c4694a5412e3f49b (patch) | |
| tree | e9f60522c2a91fddceaca57bd8c45e6e67f7db9e /include/linux | |
| parent | f81f16339a05775df600b2ff75a79be1864975c1 (diff) | |
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')
| -rw-r--r-- | include/linux/ceph/osdmap.h | 2 |
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 { | |||
| 24 | uint32_t seed; | 24 | uint32_t seed; |
| 25 | }; | 25 | }; |
| 26 | 26 | ||
| 27 | int ceph_pg_compare(const struct ceph_pg *lhs, const struct ceph_pg *rhs); | ||
| 28 | |||
| 27 | #define CEPH_POOL_FLAG_HASHPSPOOL 1 | 29 | #define CEPH_POOL_FLAG_HASHPSPOOL 1 |
| 28 | 30 | ||
| 29 | struct ceph_pg_pool_info { | 31 | struct ceph_pg_pool_info { |
