/kernel/linux/linux-5.10/fs/ceph/ |
H A D | addr.c | 1898 s64 pool, struct ceph_string *pool_ns) in __ceph_pool_perm_get() 1918 int ret = ceph_compare_string(pool_ns, in __ceph_pool_perm_get() 1919 perm->pool_ns, in __ceph_pool_perm_get() 1935 if (pool_ns) in __ceph_pool_perm_get() 1937 pool, (int)pool_ns->len, pool_ns->str); in __ceph_pool_perm_get() 1952 int ret = ceph_compare_string(pool_ns, in __ceph_pool_perm_get() 1953 perm->pool_ns, in __ceph_pool_perm_get() 1980 if (pool_ns) in __ceph_pool_perm_get() 1981 rd_req->r_base_oloc.pool_ns in __ceph_pool_perm_get() 1897 __ceph_pool_perm_get(struct ceph_inode_info *ci, s64 pool, struct ceph_string *pool_ns) __ceph_pool_perm_get() argument 2076 struct ceph_string *pool_ns; ceph_pool_perm_check() local [all...] |
H A 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 in ceph_vxattrcb_layout() [all...] |
H A D | file.c | 436 rcu_assign_pointer(cdst->i_cached_layout.pool_ns, in cache_file_layout() 437 ceph_try_get_string(csrc->i_layout.pool_ns)); in cache_file_layout() 489 rcu_assign_pointer(lo->pool_ns, in try_prep_async_create() 490 ceph_try_get_string(ci->i_cached_layout.pool_ns)); in try_prep_async_create() 580 struct ceph_string *pool_ns; in ceph_finish_async_create() local 636 /* lo is private, so pool_ns can't change */ in ceph_finish_async_create() 637 pool_ns = rcu_dereference_raw(lo->pool_ns); in ceph_finish_async_create() 638 if (pool_ns) { in ceph_finish_async_create() 639 iinfo.pool_ns_len = pool_ns in ceph_finish_async_create() [all...] |
H A D | ioctl.c | 212 oloc.pool_ns = ceph_try_get_string(ci->i_layout.pool_ns); in ceph_ioctl_get_dataloc()
|
H A D | inode.c | 461 RCU_INIT_POINTER(ci->i_layout.pool_ns, NULL); in ceph_alloc_inode() 599 ceph_put_string(rcu_dereference_raw(ci->i_layout.pool_ns)); in ceph_evict_inode() 600 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 789 pool_ns = ceph_find_or_create_string(iinfo->pool_ns_data, in ceph_fill_inode() 868 old_ns = rcu_dereference_protected(ci->i_layout.pool_ns, in ceph_fill_inode() 870 rcu_assign_pointer(ci->i_layout.pool_ns, pool_ns); in ceph_fill_inode() 872 if (ci->i_layout.pool_id != old_pool || pool_ns != old_ns) in ceph_fill_inode() 875 pool_ns in ceph_fill_inode() [all...] |
H A D | caps.c | 595 ceph_put_string(rcu_dereference_raw(ci->i_cached_layout.pool_ns)); in __check_cap_issue() 3330 struct ceph_string *pool_ns; member 3484 old_ns = rcu_dereference_protected(ci->i_layout.pool_ns, 3486 rcu_assign_pointer(ci->i_layout.pool_ns, extra_info->pool_ns); 3489 extra_info->pool_ns != old_ns) 3492 extra_info->pool_ns = old_ns; 4181 extra_info.pool_ns = in ceph_handle_caps() 4311 ceph_put_string(extra_info.pool_ns); in ceph_handle_caps()
|
H A D | mds_client.h | 343 char pool_ns[]; member
|
/kernel/linux/linux-6.6/fs/ceph/ |
H A D | addr.c | 1978 s64 pool, struct ceph_string *pool_ns) in __ceph_pool_perm_get() 1998 int ret = ceph_compare_string(pool_ns, in __ceph_pool_perm_get() 1999 perm->pool_ns, in __ceph_pool_perm_get() 2015 if (pool_ns) in __ceph_pool_perm_get() 2017 pool, (int)pool_ns->len, pool_ns->str); in __ceph_pool_perm_get() 2032 int ret = ceph_compare_string(pool_ns, in __ceph_pool_perm_get() 2033 perm->pool_ns, in __ceph_pool_perm_get() 2060 if (pool_ns) in __ceph_pool_perm_get() 2061 rd_req->r_base_oloc.pool_ns in __ceph_pool_perm_get() 1977 __ceph_pool_perm_get(struct ceph_inode_info *ci, s64 pool, struct ceph_string *pool_ns) __ceph_pool_perm_get() argument 2154 struct ceph_string *pool_ns; ceph_pool_perm_check() local [all...] |
H A D | xattr.c | 54 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 in ceph_vxattrcb_layout() [all...] |
H A D | file.c | 455 rcu_assign_pointer(cdst->i_cached_layout.pool_ns, in cache_file_layout() 456 ceph_try_get_string(csrc->i_layout.pool_ns)); in cache_file_layout() 508 rcu_assign_pointer(lo->pool_ns, in try_prep_async_create() 509 ceph_try_get_string(ci->i_cached_layout.pool_ns)); in try_prep_async_create() 626 struct ceph_string *pool_ns; in ceph_finish_async_create() local 674 /* lo is private, so pool_ns can't change */ in ceph_finish_async_create() 675 pool_ns = rcu_dereference_raw(lo->pool_ns); in ceph_finish_async_create() 676 if (pool_ns) { in ceph_finish_async_create() 677 iinfo.pool_ns_len = pool_ns in ceph_finish_async_create() [all...] |
H A D | ioctl.c | 213 oloc.pool_ns = ceph_try_get_string(ci->i_layout.pool_ns); in ceph_ioctl_get_dataloc()
|
H A D | inode.c | 586 RCU_INIT_POINTER(ci->i_layout.pool_ns, NULL); in ceph_alloc_inode() 726 ceph_put_string(rcu_dereference_raw(ci->i_layout.pool_ns)); in ceph_evict_inode() 727 ceph_put_string(rcu_dereference_raw(ci->i_cached_layout.pool_ns)); in ceph_evict_inode() 927 struct ceph_string *pool_ns = NULL; in ceph_fill_inode() local 984 pool_ns = ceph_find_or_create_string(iinfo->pool_ns_data, in ceph_fill_inode() 1076 old_ns = rcu_dereference_protected(ci->i_layout.pool_ns, in ceph_fill_inode() 1078 rcu_assign_pointer(ci->i_layout.pool_ns, pool_ns); in ceph_fill_inode() 1080 if (ci->i_layout.pool_id != old_pool || pool_ns != old_ns) in ceph_fill_inode() 1083 pool_ns in ceph_fill_inode() [all...] |
H A D | caps.c | 597 ceph_put_string(rcu_dereference_raw(ci->i_cached_layout.pool_ns)); in __check_cap_issue() 3382 struct ceph_string *pool_ns; member 3560 old_ns = rcu_dereference_protected(ci->i_layout.pool_ns, 3562 rcu_assign_pointer(ci->i_layout.pool_ns, extra_info->pool_ns); 3565 extra_info->pool_ns != old_ns) 3568 extra_info->pool_ns = old_ns; 4318 extra_info.pool_ns = in ceph_handle_caps() 4465 ceph_put_string(extra_info.pool_ns); in ceph_handle_caps()
|
H A D | mds_client.h | 371 char pool_ns[]; member
|
/kernel/linux/linux-5.10/include/linux/ceph/ |
H A D | osdmap.h | 77 struct ceph_string *pool_ns; member 83 oloc->pool_ns = NULL; in ceph_oloc_init()
|
H A D | ceph_fs.h | 67 struct ceph_string __rcu *pool_ns; /* rados pool namespace */ member
|
/kernel/linux/linux-6.6/include/linux/ceph/ |
H A D | osdmap.h | 77 struct ceph_string *pool_ns; member 83 oloc->pool_ns = NULL; in ceph_oloc_init()
|
/kernel/linux/linux-5.10/net/ceph/ |
H A 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()
|
H A 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()
|
H A D | osd_client.c | 574 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 in encode_oloc() [all...] |
/kernel/linux/linux-6.6/net/ceph/ |
H A 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()
|
H A D | osdmap.c | 2124 if (src->pool_ns) in ceph_oloc_copy() 2125 dest->pool_ns = ceph_get_string(src->pool_ns); in ceph_oloc_copy() 2127 dest->pool_ns = NULL; in ceph_oloc_copy() 2133 ceph_put_string(oloc->pool_ns); in ceph_oloc_destroy() 2400 if (!oloc->pool_ns) { in __ceph_object_locator_to_pg() 2409 int nsl = oloc->pool_ns->len; in __ceph_object_locator_to_pg() 2414 memcpy(buf, oloc->pool_ns->str, nsl); in __ceph_object_locator_to_pg() 2422 oid->name, nsl, oloc->pool_ns->str, in __ceph_object_locator_to_pg()
|
H A D | osd_client.c | 601 return 8 + 4 + 4 + 4 + (oloc->pool_ns ? oloc->pool_ns->len : 0); in ceph_oloc_encoding_size() 1131 req->r_base_oloc.pool_ns = ceph_try_get_string(layout->pool_ns); in ceph_osdc_new_request() 2022 if (t->target_oloc.pool_ns) { in hoid_fill_from_target() 2023 hoid->nspace = t->target_oloc.pool_ns->str; in hoid_fill_from_target() 2024 hoid->nspace_len = t->target_oloc.pool_ns->len; in hoid_fill_from_target() 2154 if (oloc->pool_ns) in encode_oloc() 2155 ceph_encode_string(p, end, oloc->pool_ns->str, in encode_oloc() 2156 oloc->pool_ns in encode_oloc() [all...] |
/kernel/linux/linux-5.10/drivers/block/ |
H A D | rbd.c | 190 const char *pool_ns; /* NULL if default, never "" */ member 1046 RCU_INIT_POINTER(rbd_dev->layout.pool_ns, NULL); in rbd_init_layout() 5193 return sprintf(buf, "%s\n", rbd_dev->spec->pool_ns ?: ""); in rbd_pool_ns_show() 5256 "pool_ns %s\n" in rbd_parent_show() 5262 spec->pool_ns ?: "", in rbd_parent_show() 5299 static DEVICE_ATTR(pool_ns, 0444, rbd_pool_ns_show, NULL); 5379 kfree(spec->pool_ns); in rbd_spec_free() 5437 if (spec->pool_ns) { in __rbd_dev_create() 5438 WARN_ON(!*spec->pool_ns); in __rbd_dev_create() 5439 rbd_dev->header_oloc.pool_ns in __rbd_dev_create() 5668 const char *pool_ns; global() member [all...] |
/kernel/linux/linux-6.6/drivers/block/ |
H A D | rbd.c | 190 const char *pool_ns; /* NULL if default, never "" */ member 994 RCU_INIT_POINTER(rbd_dev->layout.pool_ns, NULL); in rbd_init_layout() 5120 return sprintf(buf, "%s\n", rbd_dev->spec->pool_ns ?: ""); in rbd_pool_ns_show() 5183 "pool_ns %s\n" in rbd_parent_show() 5189 spec->pool_ns ?: "", in rbd_parent_show() 5226 static DEVICE_ATTR(pool_ns, 0444, rbd_pool_ns_show, NULL); 5306 kfree(spec->pool_ns); in rbd_spec_free() 5364 if (spec->pool_ns) { in __rbd_dev_create() 5365 WARN_ON(!*spec->pool_ns); in __rbd_dev_create() 5366 rbd_dev->header_oloc.pool_ns in __rbd_dev_create() 5595 const char *pool_ns; global() member [all...] |