Lines Matching refs:oid

1932 int oid_printf_vargs(struct ceph_object_id *oid, const char *fmt, va_list ap)  in oid_printf_vargs()  argument
1936 WARN_ON(!ceph_oid_empty(oid)); in oid_printf_vargs()
1938 len = vsnprintf(oid->inline_name, sizeof(oid->inline_name), fmt, ap); in oid_printf_vargs()
1939 if (len >= sizeof(oid->inline_name)) in oid_printf_vargs()
1942 oid->name_len = len; in oid_printf_vargs()
1949 void ceph_oid_printf(struct ceph_object_id *oid, const char *fmt, ...) in ceph_oid_printf() argument
1954 BUG_ON(oid_printf_vargs(oid, fmt, ap)); in ceph_oid_printf()
1960 int oid_aprintf_vargs(struct ceph_object_id *oid, gfp_t gfp, in oid_aprintf_vargs() argument
1967 len = oid_printf_vargs(oid, fmt, aq); in oid_aprintf_vargs()
1977 oid->name = external_name; in oid_aprintf_vargs()
1978 WARN_ON(vsnprintf(oid->name, len + 1, fmt, ap) != len); in oid_aprintf_vargs()
1979 oid->name_len = len; in oid_aprintf_vargs()
1988 int ceph_oid_aprintf(struct ceph_object_id *oid, gfp_t gfp, in ceph_oid_aprintf() argument
1995 ret = oid_aprintf_vargs(oid, gfp, fmt, ap); in ceph_oid_aprintf()
2002 void ceph_oid_destroy(struct ceph_object_id *oid) in ceph_oid_destroy() argument
2004 if (oid->name != oid->inline_name) in ceph_oid_destroy()
2005 kfree(oid->name); in ceph_oid_destroy()
2171 const struct ceph_object_id *oid, in __ceph_object_locator_to_pg() argument
2179 raw_pgid->seed = ceph_str_hash(pi->object_hash, oid->name, in __ceph_object_locator_to_pg()
2180 oid->name_len); in __ceph_object_locator_to_pg()
2181 dout("%s %s -> raw_pgid %llu.%x\n", __func__, oid->name, in __ceph_object_locator_to_pg()
2187 size_t total = nsl + 1 + oid->name_len; in __ceph_object_locator_to_pg()
2193 memcpy(buf + nsl + 1, oid->name, oid->name_len); in __ceph_object_locator_to_pg()
2199 oid->name, nsl, oloc->pool_ns->str, in __ceph_object_locator_to_pg()
2205 const struct ceph_object_id *oid, in ceph_object_locator_to_pg() argument
2215 __ceph_object_locator_to_pg(pi, oid, oloc, raw_pgid); in ceph_object_locator_to_pg()