hoid 318 include/linux/ceph/osd_client.h static inline void ceph_hoid_build_hash_cache(struct ceph_hobject_id *hoid) hoid 320 include/linux/ceph/osd_client.h hoid->hash_reverse_bits = bitrev32(hoid->hash); hoid 295 net/ceph/debugfs.c static void dump_hoid(struct seq_file *s, const struct ceph_hobject_id *hoid) hoid 297 net/ceph/debugfs.c if (hoid->snapid == 0 && hoid->hash == 0 && !hoid->is_max && hoid 298 net/ceph/debugfs.c hoid->pool == S64_MIN) { hoid 302 net/ceph/debugfs.c if (hoid->is_max) { hoid 306 net/ceph/debugfs.c seq_printf(s, "%lld:%08x:", hoid->pool, hoid->hash_reverse_bits); hoid 307 net/ceph/debugfs.c dump_name_escaped(s, hoid->nspace, hoid->nspace_len); hoid 309 net/ceph/debugfs.c dump_name_escaped(s, hoid->key, hoid->key_len); hoid 311 net/ceph/debugfs.c dump_name_escaped(s, hoid->oid, hoid->oid_len); hoid 313 net/ceph/debugfs.c dump_snapid(s, hoid->snapid); hoid 1644 net/ceph/osd_client.c static u64 hoid_get_bitwise_key(const struct ceph_hobject_id *hoid) hoid 1646 net/ceph/osd_client.c return hoid->is_max ? 0x100000000ull : hoid->hash_reverse_bits; hoid 1649 net/ceph/osd_client.c static void hoid_get_effective_key(const struct ceph_hobject_id *hoid, hoid 1652 net/ceph/osd_client.c if (hoid->key_len) { hoid 1653 net/ceph/osd_client.c *pkey = hoid->key; hoid 1654 net/ceph/osd_client.c *pkey_len = hoid->key_len; hoid 1656 net/ceph/osd_client.c *pkey = hoid->oid; hoid 1657 net/ceph/osd_client.c *pkey_len = hoid->oid_len; hoid 1728 net/ceph/osd_client.c static int decode_hoid(void **p, void *end, struct ceph_hobject_id *hoid) hoid 1744 net/ceph/osd_client.c hoid->key = ceph_extract_encoded_string(p, end, &hoid->key_len, hoid 1746 net/ceph/osd_client.c if (IS_ERR(hoid->key)) { hoid 1747 net/ceph/osd_client.c ret = PTR_ERR(hoid->key); hoid 1748 net/ceph/osd_client.c hoid->key = NULL; hoid 1752 net/ceph/osd_client.c hoid->oid = ceph_extract_encoded_string(p, end, &hoid->oid_len, hoid 1754 net/ceph/osd_client.c if (IS_ERR(hoid->oid)) { hoid 1755 net/ceph/osd_client.c ret = PTR_ERR(hoid->oid); hoid 1756 net/ceph/osd_client.c hoid->oid = NULL; hoid 1760 net/ceph/osd_client.c ceph_decode_64_safe(p, end, hoid->snapid, e_inval); hoid 1761 net/ceph/osd_client.c ceph_decode_32_safe(p, end, hoid->hash, e_inval); hoid 1762 net/ceph/osd_client.c ceph_decode_8_safe(p, end, hoid->is_max, e_inval); hoid 1764 net/ceph/osd_client.c hoid->nspace = ceph_extract_encoded_string(p, end, &hoid->nspace_len, hoid 1766 net/ceph/osd_client.c if (IS_ERR(hoid->nspace)) { hoid 1767 net/ceph/osd_client.c ret = PTR_ERR(hoid->nspace); hoid 1768 net/ceph/osd_client.c hoid->nspace = NULL; hoid 1772 net/ceph/osd_client.c ceph_decode_64_safe(p, end, hoid->pool, e_inval); hoid 1774 net/ceph/osd_client.c ceph_hoid_build_hash_cache(hoid); hoid 1781 net/ceph/osd_client.c static int hoid_encoding_size(const struct ceph_hobject_id *hoid) hoid 1784 net/ceph/osd_client.c 4 + hoid->key_len + 4 + hoid->oid_len + 4 + hoid->nspace_len; hoid 1787 net/ceph/osd_client.c static void encode_hoid(void **p, void *end, const struct ceph_hobject_id *hoid) hoid 1789 net/ceph/osd_client.c ceph_start_encoding(p, 4, 3, hoid_encoding_size(hoid)); hoid 1790 net/ceph/osd_client.c ceph_encode_string(p, end, hoid->key, hoid->key_len); hoid 1791 net/ceph/osd_client.c ceph_encode_string(p, end, hoid->oid, hoid->oid_len); hoid 1792 net/ceph/osd_client.c ceph_encode_64(p, hoid->snapid); hoid 1793 net/ceph/osd_client.c ceph_encode_32(p, hoid->hash); hoid 1794 net/ceph/osd_client.c ceph_encode_8(p, hoid->is_max); hoid 1795 net/ceph/osd_client.c ceph_encode_string(p, end, hoid->nspace, hoid->nspace_len); hoid 1796 net/ceph/osd_client.c ceph_encode_64(p, hoid->pool); hoid 1799 net/ceph/osd_client.c static void free_hoid(struct ceph_hobject_id *hoid) hoid 1801 net/ceph/osd_client.c if (hoid) { hoid 1802 net/ceph/osd_client.c kfree(hoid->key); hoid 1803 net/ceph/osd_client.c kfree(hoid->oid); hoid 1804 net/ceph/osd_client.c kfree(hoid->nspace); hoid 1805 net/ceph/osd_client.c kfree(hoid); hoid 1839 net/ceph/osd_client.c const struct ceph_hobject_id *hoid) hoid 1848 net/ceph/osd_client.c cmp = hoid_compare(hoid, cur->begin); hoid 1852 net/ceph/osd_client.c if (hoid_compare(hoid, cur->end) < 0) hoid 1893 net/ceph/osd_client.c static void hoid_fill_from_target(struct ceph_hobject_id *hoid, hoid 1896 net/ceph/osd_client.c hoid->key = NULL; hoid 1897 net/ceph/osd_client.c hoid->key_len = 0; hoid 1898 net/ceph/osd_client.c hoid->oid = t->target_oid.name; hoid 1899 net/ceph/osd_client.c hoid->oid_len = t->target_oid.name_len; hoid 1900 net/ceph/osd_client.c hoid->snapid = CEPH_NOSNAP; hoid 1901 net/ceph/osd_client.c hoid->hash = t->pgid.seed; hoid 1902 net/ceph/osd_client.c hoid->is_max = false; hoid 1904 net/ceph/osd_client.c hoid->nspace = t->target_oloc.pool_ns->str; hoid 1905 net/ceph/osd_client.c hoid->nspace_len = t->target_oloc.pool_ns->len; hoid 1907 net/ceph/osd_client.c hoid->nspace = NULL; hoid 1908 net/ceph/osd_client.c hoid->nspace_len = 0; hoid 1910 net/ceph/osd_client.c hoid->pool = t->target_oloc.pool; hoid 1911 net/ceph/osd_client.c ceph_hoid_build_hash_cache(hoid); hoid 1919 net/ceph/osd_client.c struct ceph_hobject_id hoid; hoid 1925 net/ceph/osd_client.c hoid_fill_from_target(&hoid, &req->r_t); hoid 1926 net/ceph/osd_client.c backoff = lookup_containing_backoff(&spg->backoffs, &hoid); hoid 4267 net/ceph/osd_client.c struct ceph_hobject_id hoid; hoid 4270 net/ceph/osd_client.c hoid_fill_from_target(&hoid, t); hoid 4271 net/ceph/osd_client.c cmp = hoid_compare(&hoid, begin); hoid 4272 net/ceph/osd_client.c return !cmp || (cmp > 0 && hoid_compare(&hoid, end) < 0);