/Linux-v5.10/fs/ceph/ |
D | addr.c | 1878 s64 pool, struct ceph_string *pool_ns) in __ceph_pool_perm_get() argument 1898 int ret = ceph_compare_string(pool_ns, in __ceph_pool_perm_get() 1899 perm->pool_ns, in __ceph_pool_perm_get() 1915 if (pool_ns) in __ceph_pool_perm_get() 1917 pool, (int)pool_ns->len, pool_ns->str); in __ceph_pool_perm_get() 1932 int ret = ceph_compare_string(pool_ns, in __ceph_pool_perm_get() 1933 perm->pool_ns, in __ceph_pool_perm_get() 1960 if (pool_ns) in __ceph_pool_perm_get() 1961 rd_req->r_base_oloc.pool_ns = ceph_get_string(pool_ns); in __ceph_pool_perm_get() 2020 pool_ns_len = pool_ns ? pool_ns->len : 0; in __ceph_pool_perm_get() [all …]
|
D | xattr.c | 53 rcu_dereference_raw(fl->pool_ns) != NULL); in ceph_vxattrcb_layout_exists() 61 struct ceph_string *pool_ns; in ceph_vxattrcb_layout() local 69 pool_ns = ceph_try_get_string(ci->i_layout.pool_ns); in ceph_vxattrcb_layout() 88 if (pool_ns) in ceph_vxattrcb_layout() 89 total_len += strlen(ns_field) + pool_ns->len; in ceph_vxattrcb_layout() 100 if (pool_ns) { in ceph_vxattrcb_layout() 104 memcpy(val + ret, pool_ns->str, pool_ns->len); in ceph_vxattrcb_layout() 105 ret += pool_ns->len; in ceph_vxattrcb_layout() 109 ceph_put_string(pool_ns); in ceph_vxattrcb_layout() 185 struct ceph_string *ns = ceph_try_get_string(ci->i_layout.pool_ns); in ceph_vxattrcb_layout_pool_namespace()
|
D | ioctl.c | 212 oloc.pool_ns = ceph_try_get_string(ci->i_layout.pool_ns); in ceph_ioctl_get_dataloc()
|
D | inode.c | 457 RCU_INIT_POINTER(ci->i_layout.pool_ns, NULL); in ceph_alloc_inode() 597 ceph_put_string(rcu_dereference_raw(ci->i_layout.pool_ns)); in ceph_evict_inode() 598 ceph_put_string(rcu_dereference_raw(ci->i_cached_layout.pool_ns)); in ceph_evict_inode() 753 struct ceph_string *pool_ns = NULL; in ceph_fill_inode() local 787 pool_ns = ceph_find_or_create_string(iinfo->pool_ns_data, in ceph_fill_inode() 866 old_ns = rcu_dereference_protected(ci->i_layout.pool_ns, in ceph_fill_inode() 868 rcu_assign_pointer(ci->i_layout.pool_ns, pool_ns); in ceph_fill_inode() 870 if (ci->i_layout.pool_id != old_pool || pool_ns != old_ns) in ceph_fill_inode() 873 pool_ns = old_ns; in ceph_fill_inode() 1051 ceph_put_string(pool_ns); in ceph_fill_inode()
|
D | file.c | 437 rcu_assign_pointer(cdst->i_cached_layout.pool_ns, in cache_file_layout() 438 ceph_try_get_string(csrc->i_layout.pool_ns)); in cache_file_layout() 490 rcu_assign_pointer(lo->pool_ns, in try_prep_async_create() 491 ceph_try_get_string(ci->i_cached_layout.pool_ns)); in try_prep_async_create() 2213 src_oloc.pool_ns = ceph_try_get_string(src_ci->i_layout.pool_ns); in ceph_do_objects_copy() 2215 dst_oloc.pool_ns = ceph_try_get_string(dst_ci->i_layout.pool_ns); in ceph_do_objects_copy()
|
D | mds_client.h | 349 char pool_ns[]; member
|
D | caps.c | 595 ceph_put_string(rcu_dereference_raw(ci->i_cached_layout.pool_ns)); in __check_cap_issue() 3225 struct ceph_string *pool_ns; member 3379 old_ns = rcu_dereference_protected(ci->i_layout.pool_ns, in handle_cap_grant() 3381 rcu_assign_pointer(ci->i_layout.pool_ns, extra_info->pool_ns); in handle_cap_grant() 3384 extra_info->pool_ns != old_ns) in handle_cap_grant() 3387 extra_info->pool_ns = old_ns; in handle_cap_grant() 4043 extra_info.pool_ns = in ceph_handle_caps() 4173 ceph_put_string(extra_info.pool_ns); in ceph_handle_caps()
|
D | mds_client.c | 3700 ceph_put_string(rcu_dereference_raw(ci->i_cached_layout.pool_ns)); in reconnect_caps_cb()
|
/Linux-v5.10/include/linux/ceph/ |
D | osdmap.h | 77 struct ceph_string *pool_ns; member 83 oloc->pool_ns = NULL; in ceph_oloc_init()
|
D | ceph_fs.h | 67 struct ceph_string __rcu *pool_ns; /* rados pool namespace */ member
|
/Linux-v5.10/drivers/block/ |
D | rbd.c | 190 const char *pool_ns; /* NULL if default, never "" */ member 1047 RCU_INIT_POINTER(rbd_dev->layout.pool_ns, NULL); in rbd_init_layout() 5151 return sprintf(buf, "%s\n", rbd_dev->spec->pool_ns ?: ""); in rbd_pool_ns_show() 5220 spec->pool_ns ?: "", in rbd_parent_show() 5257 static DEVICE_ATTR(pool_ns, 0444, rbd_pool_ns_show, NULL); 5337 kfree(spec->pool_ns); in rbd_spec_free() 5396 if (spec->pool_ns) { in __rbd_dev_create() 5397 WARN_ON(!*spec->pool_ns); in __rbd_dev_create() 5398 rbd_dev->header_oloc.pool_ns = in __rbd_dev_create() 5399 ceph_find_or_create_string(spec->pool_ns, in __rbd_dev_create() [all …]
|
/Linux-v5.10/net/ceph/ |
D | debugfs.c | 196 if (t->target_oloc.pool_ns) { in dump_target() 198 (int)t->target_oloc.pool_ns->len, in dump_target() 199 t->target_oloc.pool_ns->str, in dump_target()
|
D | osdmap.c | 2089 if (src->pool_ns) in ceph_oloc_copy() 2090 dest->pool_ns = ceph_get_string(src->pool_ns); in ceph_oloc_copy() 2092 dest->pool_ns = NULL; in ceph_oloc_copy() 2098 ceph_put_string(oloc->pool_ns); in ceph_oloc_destroy() 2365 if (!oloc->pool_ns) { in __ceph_object_locator_to_pg() 2374 int nsl = oloc->pool_ns->len; in __ceph_object_locator_to_pg() 2379 memcpy(buf, oloc->pool_ns->str, nsl); in __ceph_object_locator_to_pg() 2387 oid->name, nsl, oloc->pool_ns->str, in __ceph_object_locator_to_pg()
|
D | osd_client.c | 611 return 8 + 4 + 4 + 4 + (oloc->pool_ns ? oloc->pool_ns->len : 0); in ceph_oloc_encoding_size() 1116 req->r_base_oloc.pool_ns = ceph_try_get_string(layout->pool_ns); in ceph_osdc_new_request() 1963 if (t->target_oloc.pool_ns) { in hoid_fill_from_target() 1964 hoid->nspace = t->target_oloc.pool_ns->str; in hoid_fill_from_target() 1965 hoid->nspace_len = t->target_oloc.pool_ns->len; in hoid_fill_from_target() 2094 if (oloc->pool_ns) in encode_oloc() 2095 ceph_encode_string(p, end, oloc->pool_ns->str, in encode_oloc() 2096 oloc->pool_ns->len); in encode_oloc() 3484 if (!oloc->pool_ns || in ceph_oloc_decode() 3485 ceph_compare_string(oloc->pool_ns, *p, len)) in ceph_oloc_decode() [all …]
|