Lines Matching refs:oloc
572 static int ceph_oloc_encoding_size(const struct ceph_object_locator *oloc) in ceph_oloc_encoding_size() argument
574 return 8 + 4 + 4 + 4 + (oloc->pool_ns ? oloc->pool_ns->len : 0); in ceph_oloc_encoding_size()
2067 const struct ceph_object_locator *oloc) in encode_oloc() argument
2069 ceph_start_encoding(p, 5, 4, ceph_oloc_encoding_size(oloc)); in encode_oloc()
2070 ceph_encode_64(p, oloc->pool); in encode_oloc()
2073 if (oloc->pool_ns) in encode_oloc()
2074 ceph_encode_string(p, end, oloc->pool_ns->str, in encode_oloc()
2075 oloc->pool_ns->len); in encode_oloc()
2181 void *oloc, *oid, *tail; in encode_request_finish() local
2194 oloc = p; in encode_request_finish()
2200 oloc_len = p - oloc; in encode_request_finish()
2220 BUG_ON(p >= oloc); in encode_request_finish()
2221 memmove(p, oloc, oloc_len); in encode_request_finish()
3466 struct ceph_object_locator *oloc) in ceph_oloc_decode() argument
3490 oloc->pool = ceph_decode_64(p); in ceph_oloc_decode()
3505 if (!oloc->pool_ns || in ceph_oloc_decode()
3506 ceph_compare_string(oloc->pool_ns, *p, len)) in ceph_oloc_decode()
3510 if (oloc->pool_ns) in ceph_oloc_decode()
3558 ret = ceph_oloc_decode(p, end, &redir->oloc); in ceph_redirect_decode()
3659 ceph_oloc_init(&m->redirect.oloc); in decode_MOSDOpReply()
3698 m.redirect.oloc.pool_ns = req->r_t.target_oloc.pool_ns; in handle_reply()
3700 m.redirect.oloc.pool_ns = NULL; in handle_reply()
3723 if (!ceph_oloc_empty(&m.redirect.oloc)) { in handle_reply()
3725 m.redirect.oloc.pool); in handle_reply()
3733 req->r_t.target_oloc.pool = m.redirect.oloc.pool; in handle_reply()
4681 struct ceph_object_locator *oloc, in ceph_osdc_watch() argument
4700 ceph_oloc_copy(&lreq->t.base_oloc, oloc); in ceph_osdc_watch()
4793 struct ceph_object_locator *oloc, in ceph_osdc_notify_ack() argument
4807 ceph_oloc_copy(&req->r_base_oloc, oloc); in ceph_osdc_notify_ack()
4838 struct ceph_object_locator *oloc, in ceph_osdc_notify() argument
4885 ceph_oloc_copy(&lreq->t.base_oloc, oloc); in ceph_osdc_notify()
5004 struct ceph_object_locator *oloc, in ceph_osdc_list_watchers() argument
5017 ceph_oloc_copy(&req->r_base_oloc, oloc); in ceph_osdc_list_watchers()
5077 struct ceph_object_locator *oloc, in ceph_osdc_call() argument
5094 ceph_oloc_copy(&req->r_base_oloc, oloc); in ceph_osdc_call()