summaryrefslogtreecommitdiff
path: root/net/ceph/osd_client.c
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2016-04-28 17:07:22 +0300
committerIlya Dryomov <idryomov@gmail.com>2016-05-26 01:36:24 +0300
commitd9591f5e28686277d9312d3c7422faf1368b305e (patch)
tree3c7a0b80b87e175f11523926f9b4de7a5364f521 /net/ceph/osd_client.c
parent985c1673885b77b2e0167c6478a833817d1e2fe5 (diff)
downloadlinux-d9591f5e28686277d9312d3c7422faf1368b305e.tar.xz
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 'net/ceph/osd_client.c')
-rw-r--r--net/ceph/osd_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c
index 8256051ed88f..cb9f1953f5fb 100644
--- a/net/ceph/osd_client.c
+++ b/net/ceph/osd_client.c
@@ -1324,8 +1324,8 @@ static int __calc_request_pg(struct ceph_osdmap *osdmap,
/* !pi is caught in ceph_oloc_oid_to_pg() */
}
- return ceph_oloc_oid_to_pg(osdmap, &req->r_target_oloc,
- &req->r_target_oid, pg_out);
+ return ceph_object_locator_to_pg(osdmap, &req->r_target_oid,
+ &req->r_target_oloc, pg_out);
}
static void __enqueue_request(struct ceph_osd_request *req)