Home
last modified time | relevance | path

Searched refs:oloc (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/include/linux/ceph/
H A Dcls_lock_client.h29 struct ceph_object_locator *oloc,
34 struct ceph_object_locator *oloc,
38 struct ceph_object_locator *oloc,
43 struct ceph_object_locator *oloc,
51 struct ceph_object_locator *oloc,
H A Dosdmap.h80 static inline void ceph_oloc_init(struct ceph_object_locator *oloc) in ceph_oloc_init() argument
82 oloc->pool = -1; in ceph_oloc_init()
83 oloc->pool_ns = NULL; in ceph_oloc_init()
86 static inline bool ceph_oloc_empty(const struct ceph_object_locator *oloc) in ceph_oloc_empty() argument
88 return oloc->pool == -1; in ceph_oloc_empty()
93 void ceph_oloc_destroy(struct ceph_object_locator *oloc);
296 const struct ceph_object_locator *oloc,
300 const struct ceph_object_locator *oloc,
H A Dosd_client.h286 struct ceph_object_locator oloc; member
596 struct ceph_object_locator *oloc,
606 struct ceph_object_locator *oloc,
615 struct ceph_object_locator *oloc,
622 struct ceph_object_locator *oloc,
632 struct ceph_object_locator *oloc,
/openbmc/linux/net/ceph/
H A Dcls_lock_client.c27 struct ceph_object_locator *oloc, in ceph_cls_lock() argument
75 ret = ceph_osdc_call(osdc, oid, oloc, "lock", "lock", in ceph_cls_lock()
95 struct ceph_object_locator *oloc, in ceph_cls_unlock() argument
125 ret = ceph_osdc_call(osdc, oid, oloc, "lock", "unlock", in ceph_cls_unlock()
146 struct ceph_object_locator *oloc, in ceph_cls_break_lock() argument
180 ret = ceph_osdc_call(osdc, oid, oloc, "lock", "break_lock", in ceph_cls_break_lock()
192 struct ceph_object_locator *oloc, in ceph_cls_set_cookie() argument
231 ret = ceph_osdc_call(osdc, oid, oloc, "lock", "set_cookie", in ceph_cls_set_cookie()
336 struct ceph_object_locator *oloc, in ceph_cls_lock_info() argument
371 ret = ceph_osdc_call(osdc, oid, oloc, "lock", "get_info", in ceph_cls_lock_info()
H A Dosd_client.c601 return 8 + 4 + 4 + 4 + (oloc->pool_ns ? oloc->pool_ns->len : 0); in ceph_oloc_encoding_size()
2154 if (oloc->pool_ns) in encode_oloc()
2156 oloc->pool_ns->len); in encode_oloc()
2262 void *oloc, *oid, *tail; in encode_request_finish() local
2275 oloc = p; in encode_request_finish()
2281 oloc_len = p - oloc; in encode_request_finish()
2301 BUG_ON(p >= oloc); in encode_request_finish()
2302 memmove(p, oloc, oloc_len); in encode_request_finish()
3599 if (!oloc->pool_ns || in ceph_oloc_decode()
3604 if (oloc->pool_ns) in ceph_oloc_decode()
[all …]
H A Dosdmap.c2133 ceph_put_string(oloc->pool_ns); in ceph_oloc_destroy()
2395 const struct ceph_object_locator *oloc, in __ceph_object_locator_to_pg() argument
2398 WARN_ON(pi->id != oloc->pool); in __ceph_object_locator_to_pg()
2400 if (!oloc->pool_ns) { in __ceph_object_locator_to_pg()
2401 raw_pgid->pool = oloc->pool; in __ceph_object_locator_to_pg()
2409 int nsl = oloc->pool_ns->len; in __ceph_object_locator_to_pg()
2414 memcpy(buf, oloc->pool_ns->str, nsl); in __ceph_object_locator_to_pg()
2417 raw_pgid->pool = oloc->pool; in __ceph_object_locator_to_pg()
2422 oid->name, nsl, oloc->pool_ns->str, in __ceph_object_locator_to_pg()
2429 const struct ceph_object_locator *oloc, in ceph_object_locator_to_pg() argument
[all …]
/openbmc/linux/fs/ceph/
H A Dioctl.c187 struct ceph_object_locator oloc; in ceph_ioctl_get_dataloc() local
212 oloc.pool = ci->i_layout.pool_id; in ceph_ioctl_get_dataloc()
213 oloc.pool_ns = ceph_try_get_string(ci->i_layout.pool_ns); in ceph_ioctl_get_dataloc()
216 r = ceph_object_locator_to_pg(osdc->osdmap, &oid, &oloc, &pgid); in ceph_ioctl_get_dataloc()
218 ceph_oloc_destroy(&oloc); in ceph_ioctl_get_dataloc()
/openbmc/linux/drivers/block/
H A Drbd.c4668 struct ceph_object_locator *oloc, in rbd_obj_method_sync() argument
4705 ret = ceph_osdc_call(osdc, oid, oloc, RBD_DRV_NAME, method_name, in rbd_obj_method_sync()
4824 struct ceph_object_locator *oloc, in rbd_obj_read_sync() argument
4839 ceph_oloc_copy(&req->r_base_oloc, oloc); in rbd_obj_read_sync()