Home
last modified time | relevance | path

Searched refs:pool_ns (Results 1 – 14 of 14) sorted by relevance

/linux-5.19.10/fs/ceph/
Daddr.c1800 s64 pool, struct ceph_string *pool_ns) in __ceph_pool_perm_get() argument
1820 int ret = ceph_compare_string(pool_ns, in __ceph_pool_perm_get()
1821 perm->pool_ns, in __ceph_pool_perm_get()
1837 if (pool_ns) in __ceph_pool_perm_get()
1839 pool, (int)pool_ns->len, pool_ns->str); in __ceph_pool_perm_get()
1854 int ret = ceph_compare_string(pool_ns, in __ceph_pool_perm_get()
1855 perm->pool_ns, in __ceph_pool_perm_get()
1882 if (pool_ns) in __ceph_pool_perm_get()
1883 rd_req->r_base_oloc.pool_ns = ceph_get_string(pool_ns); in __ceph_pool_perm_get()
1942 pool_ns_len = pool_ns ? pool_ns->len : 0; in __ceph_pool_perm_get()
[all …]
Dxattr.c54 rcu_dereference_raw(fl->pool_ns) != NULL); in ceph_vxattrcb_layout_exists()
62 struct ceph_string *pool_ns; in ceph_vxattrcb_layout() local
70 pool_ns = ceph_try_get_string(ci->i_layout.pool_ns); in ceph_vxattrcb_layout()
89 if (pool_ns) in ceph_vxattrcb_layout()
90 total_len += strlen(ns_field) + pool_ns->len; in ceph_vxattrcb_layout()
101 if (pool_ns) { in ceph_vxattrcb_layout()
105 memcpy(val + ret, pool_ns->str, pool_ns->len); in ceph_vxattrcb_layout()
106 ret += pool_ns->len; in ceph_vxattrcb_layout()
110 ceph_put_string(pool_ns); in ceph_vxattrcb_layout()
186 struct ceph_string *ns = ceph_try_get_string(ci->i_layout.pool_ns); in ceph_vxattrcb_layout_pool_namespace()
Dfile.c456 rcu_assign_pointer(cdst->i_cached_layout.pool_ns, in cache_file_layout()
457 ceph_try_get_string(csrc->i_layout.pool_ns)); in cache_file_layout()
509 rcu_assign_pointer(lo->pool_ns, in try_prep_async_create()
510 ceph_try_get_string(ci->i_cached_layout.pool_ns)); in try_prep_async_create()
617 struct ceph_string *pool_ns; in ceph_finish_async_create() local
674 pool_ns = rcu_dereference_raw(lo->pool_ns); in ceph_finish_async_create()
675 if (pool_ns) { in ceph_finish_async_create()
676 iinfo.pool_ns_len = pool_ns->len; in ceph_finish_async_create()
677 iinfo.pool_ns_data = pool_ns->str; in ceph_finish_async_create()
801 ceph_put_string(rcu_dereference_raw(lo.pool_ns)); in ceph_atomic_open()
[all …]
Dioctl.c212 oloc.pool_ns = ceph_try_get_string(ci->i_layout.pool_ns); in ceph_ioctl_get_dataloc()
Dinode.c482 RCU_INIT_POINTER(ci->i_layout.pool_ns, NULL); in ceph_alloc_inode()
612 ceph_put_string(rcu_dereference_raw(ci->i_layout.pool_ns)); in ceph_evict_inode()
613 ceph_put_string(rcu_dereference_raw(ci->i_cached_layout.pool_ns)); in ceph_evict_inode()
771 struct ceph_string *pool_ns = NULL; in ceph_fill_inode() local
828 pool_ns = ceph_find_or_create_string(iinfo->pool_ns_data, in ceph_fill_inode()
905 old_ns = rcu_dereference_protected(ci->i_layout.pool_ns, in ceph_fill_inode()
907 rcu_assign_pointer(ci->i_layout.pool_ns, pool_ns); in ceph_fill_inode()
909 if (ci->i_layout.pool_id != old_pool || pool_ns != old_ns) in ceph_fill_inode()
912 pool_ns = old_ns; in ceph_fill_inode()
1093 ceph_put_string(pool_ns); in ceph_fill_inode()
Dmds_client.h345 char pool_ns[]; member
Dcaps.c595 ceph_put_string(rcu_dereference_raw(ci->i_cached_layout.pool_ns)); in __check_cap_issue()
3320 struct ceph_string *pool_ns; member
3479 old_ns = rcu_dereference_protected(ci->i_layout.pool_ns, in handle_cap_grant()
3481 rcu_assign_pointer(ci->i_layout.pool_ns, extra_info->pool_ns); in handle_cap_grant()
3484 extra_info->pool_ns != old_ns) in handle_cap_grant()
3487 extra_info->pool_ns = old_ns; in handle_cap_grant()
4166 extra_info.pool_ns = in ceph_handle_caps()
4297 ceph_put_string(extra_info.pool_ns); in ceph_handle_caps()
Dmds_client.c3772 ceph_put_string(rcu_dereference_raw(ci->i_cached_layout.pool_ns)); in reconnect_caps_cb()
/linux-5.19.10/include/linux/ceph/
Dosdmap.h77 struct ceph_string *pool_ns; member
83 oloc->pool_ns = NULL; in ceph_oloc_init()
Dceph_fs.h67 struct ceph_string __rcu *pool_ns; /* rados pool namespace */ member
/linux-5.19.10/drivers/block/
Drbd.c190 const char *pool_ns; /* NULL if default, never "" */ member
995 RCU_INIT_POINTER(rbd_dev->layout.pool_ns, NULL); in rbd_init_layout()
5066 return sprintf(buf, "%s\n", rbd_dev->spec->pool_ns ?: ""); in rbd_pool_ns_show()
5135 spec->pool_ns ?: "", in rbd_parent_show()
5172 static DEVICE_ATTR(pool_ns, 0444, rbd_pool_ns_show, NULL);
5252 kfree(spec->pool_ns); in rbd_spec_free()
5311 if (spec->pool_ns) { in __rbd_dev_create()
5312 WARN_ON(!*spec->pool_ns); in __rbd_dev_create()
5313 rbd_dev->header_oloc.pool_ns = in __rbd_dev_create()
5314 ceph_find_or_create_string(spec->pool_ns, in __rbd_dev_create()
[all …]
/linux-5.19.10/net/ceph/
Ddebugfs.c196 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()
Dosdmap.c2108 if (src->pool_ns) in ceph_oloc_copy()
2109 dest->pool_ns = ceph_get_string(src->pool_ns); in ceph_oloc_copy()
2111 dest->pool_ns = NULL; in ceph_oloc_copy()
2117 ceph_put_string(oloc->pool_ns); in ceph_oloc_destroy()
2384 if (!oloc->pool_ns) { in __ceph_object_locator_to_pg()
2393 int nsl = oloc->pool_ns->len; in __ceph_object_locator_to_pg()
2398 memcpy(buf, oloc->pool_ns->str, nsl); in __ceph_object_locator_to_pg()
2406 oid->name, nsl, oloc->pool_ns->str, in __ceph_object_locator_to_pg()
Dosd_client.c574 return 8 + 4 + 4 + 4 + (oloc->pool_ns ? oloc->pool_ns->len : 0); in ceph_oloc_encoding_size()
1095 req->r_base_oloc.pool_ns = ceph_try_get_string(layout->pool_ns); in ceph_osdc_new_request()
1942 if (t->target_oloc.pool_ns) { in hoid_fill_from_target()
1943 hoid->nspace = t->target_oloc.pool_ns->str; in hoid_fill_from_target()
1944 hoid->nspace_len = t->target_oloc.pool_ns->len; in hoid_fill_from_target()
2073 if (oloc->pool_ns) in encode_oloc()
2074 ceph_encode_string(p, end, oloc->pool_ns->str, in encode_oloc()
2075 oloc->pool_ns->len); in encode_oloc()
3509 if (!oloc->pool_ns || in ceph_oloc_decode()
3510 ceph_compare_string(oloc->pool_ns, *p, len)) in ceph_oloc_decode()
[all …]