/Linux-v5.4/fs/ceph/ |
D | addr.c | 1815 s64 pool, struct ceph_string *pool_ns) in __ceph_pool_perm_get() argument 1835 int ret = ceph_compare_string(pool_ns, in __ceph_pool_perm_get() 1836 perm->pool_ns, in __ceph_pool_perm_get() 1852 if (pool_ns) in __ceph_pool_perm_get() 1854 pool, (int)pool_ns->len, pool_ns->str); in __ceph_pool_perm_get() 1869 int ret = ceph_compare_string(pool_ns, in __ceph_pool_perm_get() 1870 perm->pool_ns, in __ceph_pool_perm_get() 1897 if (pool_ns) in __ceph_pool_perm_get() 1898 rd_req->r_base_oloc.pool_ns = ceph_get_string(pool_ns); in __ceph_pool_perm_get() 1957 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() 184 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 | 448 RCU_INIT_POINTER(ci->i_layout.pool_ns, NULL); in ceph_alloc_inode() 586 ceph_put_string(rcu_dereference_raw(ci->i_layout.pool_ns)); in ceph_evict_inode() 742 struct ceph_string *pool_ns = NULL; in fill_inode() local 773 pool_ns = ceph_find_or_create_string(iinfo->pool_ns_data, in fill_inode() 852 old_ns = rcu_dereference_protected(ci->i_layout.pool_ns, in fill_inode() 854 rcu_assign_pointer(ci->i_layout.pool_ns, pool_ns); in fill_inode() 856 if (ci->i_layout.pool_id != old_pool || pool_ns != old_ns) in fill_inode() 859 pool_ns = old_ns; in fill_inode() 1035 ceph_put_string(pool_ns); in fill_inode()
|
D | mds_client.h | 319 char pool_ns[]; member
|
D | caps.c | 3066 struct ceph_string *pool_ns; member 3220 old_ns = rcu_dereference_protected(ci->i_layout.pool_ns, in handle_cap_grant() 3222 rcu_assign_pointer(ci->i_layout.pool_ns, extra_info->pool_ns); in handle_cap_grant() 3225 extra_info->pool_ns != old_ns) in handle_cap_grant() 3228 extra_info->pool_ns = old_ns; in handle_cap_grant() 3883 extra_info.pool_ns = in ceph_handle_caps() 4009 ceph_put_string(extra_info.pool_ns); in ceph_handle_caps()
|
D | file.c | 2038 src_oloc.pool_ns = ceph_try_get_string(src_ci->i_layout.pool_ns); in __ceph_copy_file_range() 2040 dst_oloc.pool_ns = ceph_try_get_string(dst_ci->i_layout.pool_ns); in __ceph_copy_file_range()
|
/Linux-v5.4/include/linux/ceph/ |
D | osdmap.h | 74 struct ceph_string *pool_ns; member 80 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.4/drivers/block/ |
D | rbd.c | 190 const char *pool_ns; /* NULL if default, never "" */ member 927 kfree(pctx->spec->pool_ns); in parse_rbd_opts_token() 928 pctx->spec->pool_ns = match_strdup(argstr); in parse_rbd_opts_token() 929 if (!pctx->spec->pool_ns) in parse_rbd_opts_token() 1098 RCU_INIT_POINTER(rbd_dev->layout.pool_ns, NULL); in rbd_init_layout() 5304 return sprintf(buf, "%s\n", rbd_dev->spec->pool_ns ?: ""); in rbd_pool_ns_show() 5373 spec->pool_ns ?: "", in rbd_parent_show() 5407 static DEVICE_ATTR(pool_ns, 0444, rbd_pool_ns_show, NULL); 5487 kfree(spec->pool_ns); in rbd_spec_free() 5546 if (spec->pool_ns) { in __rbd_dev_create() [all …]
|
/Linux-v5.4/net/ceph/ |
D | debugfs.c | 194 if (t->target_oloc.pool_ns) { in dump_target() 196 (int)t->target_oloc.pool_ns->len, in dump_target() 197 t->target_oloc.pool_ns->str, in dump_target()
|
D | osdmap.c | 1901 if (src->pool_ns) in ceph_oloc_copy() 1902 dest->pool_ns = ceph_get_string(src->pool_ns); in ceph_oloc_copy() 1904 dest->pool_ns = NULL; in ceph_oloc_copy() 1910 ceph_put_string(oloc->pool_ns); in ceph_oloc_destroy() 2177 if (!oloc->pool_ns) { in __ceph_object_locator_to_pg() 2186 int nsl = oloc->pool_ns->len; in __ceph_object_locator_to_pg() 2191 memcpy(buf, oloc->pool_ns->str, nsl); in __ceph_object_locator_to_pg() 2199 oid->name, nsl, oloc->pool_ns->str, in __ceph_object_locator_to_pg()
|
D | osd_client.c | 609 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() 1903 if (t->target_oloc.pool_ns) { in hoid_fill_from_target() 1904 hoid->nspace = t->target_oloc.pool_ns->str; in hoid_fill_from_target() 1905 hoid->nspace_len = t->target_oloc.pool_ns->len; in hoid_fill_from_target() 2034 if (oloc->pool_ns) in encode_oloc() 2035 ceph_encode_string(p, end, oloc->pool_ns->str, in encode_oloc() 2036 oloc->pool_ns->len); in encode_oloc() 3423 if (!oloc->pool_ns || in ceph_oloc_decode() 3424 ceph_compare_string(oloc->pool_ns, *p, len)) in ceph_oloc_decode() [all …]
|