Lines Matching refs:oid

2139 int oid_printf_vargs(struct ceph_object_id *oid, const char *fmt, va_list ap)  in oid_printf_vargs()  argument
2143 WARN_ON(!ceph_oid_empty(oid)); in oid_printf_vargs()
2145 len = vsnprintf(oid->inline_name, sizeof(oid->inline_name), fmt, ap); in oid_printf_vargs()
2146 if (len >= sizeof(oid->inline_name)) in oid_printf_vargs()
2149 oid->name_len = len; in oid_printf_vargs()
2156 void ceph_oid_printf(struct ceph_object_id *oid, const char *fmt, ...) in ceph_oid_printf() argument
2161 BUG_ON(oid_printf_vargs(oid, fmt, ap)); in ceph_oid_printf()
2167 int oid_aprintf_vargs(struct ceph_object_id *oid, gfp_t gfp, in oid_aprintf_vargs() argument
2174 len = oid_printf_vargs(oid, fmt, aq); in oid_aprintf_vargs()
2184 oid->name = external_name; in oid_aprintf_vargs()
2185 WARN_ON(vsnprintf(oid->name, len + 1, fmt, ap) != len); in oid_aprintf_vargs()
2186 oid->name_len = len; in oid_aprintf_vargs()
2195 int ceph_oid_aprintf(struct ceph_object_id *oid, gfp_t gfp, in ceph_oid_aprintf() argument
2202 ret = oid_aprintf_vargs(oid, gfp, fmt, ap); in ceph_oid_aprintf()
2209 void ceph_oid_destroy(struct ceph_object_id *oid) in ceph_oid_destroy() argument
2211 if (oid->name != oid->inline_name) in ceph_oid_destroy()
2212 kfree(oid->name); in ceph_oid_destroy()
2378 const struct ceph_object_id *oid, in __ceph_object_locator_to_pg() argument
2386 raw_pgid->seed = ceph_str_hash(pi->object_hash, oid->name, in __ceph_object_locator_to_pg()
2387 oid->name_len); in __ceph_object_locator_to_pg()
2388 dout("%s %s -> raw_pgid %llu.%x\n", __func__, oid->name, in __ceph_object_locator_to_pg()
2394 size_t total = nsl + 1 + oid->name_len; in __ceph_object_locator_to_pg()
2400 memcpy(buf + nsl + 1, oid->name, oid->name_len); in __ceph_object_locator_to_pg()
2406 oid->name, nsl, oloc->pool_ns->str, in __ceph_object_locator_to_pg()
2412 const struct ceph_object_id *oid, in ceph_object_locator_to_pg() argument
2422 __ceph_object_locator_to_pg(pi, oid, oloc, raw_pgid); in ceph_object_locator_to_pg()