Lines Matching refs:oloc

576 static int ceph_oloc_encoding_size(const struct ceph_object_locator *oloc)  in ceph_oloc_encoding_size()  argument
578 return 8 + 4 + 4 + 4 + (oloc->pool_ns ? oloc->pool_ns->len : 0); in ceph_oloc_encoding_size()
2127 const struct ceph_object_locator *oloc) in encode_oloc() argument
2129 ceph_start_encoding(p, 5, 4, ceph_oloc_encoding_size(oloc)); in encode_oloc()
2130 ceph_encode_64(p, oloc->pool); in encode_oloc()
2133 if (oloc->pool_ns) in encode_oloc()
2134 ceph_encode_string(p, end, oloc->pool_ns->str, in encode_oloc()
2135 oloc->pool_ns->len); in encode_oloc()
2241 void *oloc, *oid, *tail; in encode_request_finish() local
2254 oloc = p; in encode_request_finish()
2260 oloc_len = p - oloc; in encode_request_finish()
2280 BUG_ON(p >= oloc); in encode_request_finish()
2281 memmove(p, oloc, oloc_len); in encode_request_finish()
3539 struct ceph_object_locator *oloc) in ceph_oloc_decode() argument
3563 oloc->pool = ceph_decode_64(p); in ceph_oloc_decode()
3578 if (!oloc->pool_ns || in ceph_oloc_decode()
3579 ceph_compare_string(oloc->pool_ns, *p, len)) in ceph_oloc_decode()
3583 if (oloc->pool_ns) in ceph_oloc_decode()
3631 ret = ceph_oloc_decode(p, end, &redir->oloc); in ceph_redirect_decode()
3732 ceph_oloc_init(&m->redirect.oloc); in decode_MOSDOpReply()
3771 m.redirect.oloc.pool_ns = req->r_t.target_oloc.pool_ns; in handle_reply()
3773 m.redirect.oloc.pool_ns = NULL; in handle_reply()
3796 if (!ceph_oloc_empty(&m.redirect.oloc)) { in handle_reply()
3798 m.redirect.oloc.pool); in handle_reply()
3806 req->r_t.target_oloc.pool = m.redirect.oloc.pool; in handle_reply()
4759 struct ceph_object_locator *oloc, in ceph_osdc_watch() argument
4778 ceph_oloc_copy(&lreq->t.base_oloc, oloc); in ceph_osdc_watch()
4871 struct ceph_object_locator *oloc, in ceph_osdc_notify_ack() argument
4885 ceph_oloc_copy(&req->r_base_oloc, oloc); in ceph_osdc_notify_ack()
4916 struct ceph_object_locator *oloc, in ceph_osdc_notify() argument
4963 ceph_oloc_copy(&lreq->t.base_oloc, oloc); in ceph_osdc_notify()
5049 struct ceph_object_locator *oloc, in ceph_osdc_list_watchers() argument
5062 ceph_oloc_copy(&req->r_base_oloc, oloc); in ceph_osdc_list_watchers()
5122 struct ceph_object_locator *oloc, in ceph_osdc_call() argument
5139 ceph_oloc_copy(&req->r_base_oloc, oloc); in ceph_osdc_call()