diff options
| author | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-01-27 10:40:19 -0500 |
|---|---|---|
| committer | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-01-27 16:57:32 -0500 |
| commit | 7c13cb64352230deac24d3cb058387a6c0676f83 (patch) | |
| tree | 136efed002c9fbbdf97bfe9a666fb1c1cc244e8c /include/linux/ceph | |
| parent | 4295f2217a5aa8ef2738e3a368db3c1ceab41212 (diff) | |
libceph: replace ceph_calc_ceph_pg() with ceph_oloc_oid_to_pg()
Switch ceph_calc_ceph_pg() to new oloc and oid abstractions and rename
it to ceph_oloc_oid_to_pg() to make its purpose more clear.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'include/linux/ceph')
| -rw-r--r-- | include/linux/ceph/osdmap.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/ceph/osdmap.h b/include/linux/ceph/osdmap.h index c85f7d43b861..ebb8ec285de6 100644 --- a/include/linux/ceph/osdmap.h +++ b/include/linux/ceph/osdmap.h | |||
| @@ -163,8 +163,11 @@ extern int ceph_calc_file_object_mapping(struct ceph_file_layout *layout, | |||
| 163 | u64 *bno, u64 *oxoff, u64 *oxlen); | 163 | u64 *bno, u64 *oxoff, u64 *oxlen); |
| 164 | 164 | ||
| 165 | /* calculate mapping of object to a placement group */ | 165 | /* calculate mapping of object to a placement group */ |
| 166 | extern int ceph_calc_ceph_pg(struct ceph_pg *pg, const char *oid, | 166 | extern int ceph_oloc_oid_to_pg(struct ceph_osdmap *osdmap, |
| 167 | struct ceph_osdmap *osdmap, uint64_t pool); | 167 | struct ceph_object_locator *oloc, |
| 168 | struct ceph_object_id *oid, | ||
| 169 | struct ceph_pg *pg_out); | ||
| 170 | |||
| 168 | extern int ceph_calc_pg_acting(struct ceph_osdmap *osdmap, | 171 | extern int ceph_calc_pg_acting(struct ceph_osdmap *osdmap, |
| 169 | struct ceph_pg pgid, | 172 | struct ceph_pg pgid, |
| 170 | int *acting); | 173 | int *acting); |
