aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ceph
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2016-04-28 10:07:22 -0400
committerIlya Dryomov <idryomov@gmail.com>2016-05-25 18:36:24 -0400
commitd9591f5e28686277d9312d3c7422faf1368b305e (patch)
tree3c7a0b80b87e175f11523926f9b4de7a5364f521 /include/linux/ceph
parent985c1673885b77b2e0167c6478a833817d1e2fe5 (diff)
libceph: rename ceph_oloc_oid_to_pg()
Rename ceph_oloc_oid_to_pg() to ceph_object_locator_to_pg(). Emphasise that returned is raw PG and return -ENOENT instead of -EIO if the pool doesn't exist. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r--include/linux/ceph/osdmap.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/ceph/osdmap.h b/include/linux/ceph/osdmap.h
index ce7a41a182d4..b70440c05b49 100644
--- a/include/linux/ceph/osdmap.h
+++ b/include/linux/ceph/osdmap.h
@@ -213,11 +213,10 @@ extern int ceph_calc_file_object_mapping(struct ceph_file_layout *layout,
213 u64 off, u64 len, 213 u64 off, u64 len,
214 u64 *bno, u64 *oxoff, u64 *oxlen); 214 u64 *bno, u64 *oxoff, u64 *oxlen);
215 215
216/* calculate mapping of object to a placement group */ 216int ceph_object_locator_to_pg(struct ceph_osdmap *osdmap,
217extern int ceph_oloc_oid_to_pg(struct ceph_osdmap *osdmap, 217 struct ceph_object_id *oid,
218 struct ceph_object_locator *oloc, 218 struct ceph_object_locator *oloc,
219 struct ceph_object_id *oid, 219 struct ceph_pg *raw_pgid);
220 struct ceph_pg *pg_out);
221 220
222extern int ceph_calc_pg_acting(struct ceph_osdmap *osdmap, 221extern int ceph_calc_pg_acting(struct ceph_osdmap *osdmap,
223 struct ceph_pg pgid, 222 struct ceph_pg pgid,