Searched refs:type_name_len (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/net/ceph/ |
H A D | osdmap.c | 2855 static struct crush_loc_node *alloc_crush_loc(size_t type_name_len, in alloc_crush_loc() argument 2860 loc = kmalloc(sizeof(*loc) + type_name_len + name_len + 2, GFP_NOIO); in alloc_crush_loc() 2895 size_t type_name_len, name_len; in ceph_parse_crush_location() local 2903 type_name_len = colon - type_name; in ceph_parse_crush_location() 2904 if (type_name_len == 0) in ceph_parse_crush_location() 2912 loc = alloc_crush_loc(type_name_len, name_len); in ceph_parse_crush_location() 2917 memcpy(loc->cl_loc.cl_type_name, type_name, type_name_len); in ceph_parse_crush_location() 2918 loc->cl_loc.cl_type_name[type_name_len] = '\0'; in ceph_parse_crush_location() 2920 loc->cl_loc.cl_name = loc->cl_data + type_name_len + 1; in ceph_parse_crush_location()
|
/kernel/linux/linux-6.6/net/ceph/ |
H A D | osdmap.c | 2890 static struct crush_loc_node *alloc_crush_loc(size_t type_name_len, in alloc_crush_loc() argument 2895 loc = kmalloc(sizeof(*loc) + type_name_len + name_len + 2, GFP_NOIO); in alloc_crush_loc() 2930 size_t type_name_len, name_len; in ceph_parse_crush_location() local 2938 type_name_len = colon - type_name; in ceph_parse_crush_location() 2939 if (type_name_len == 0) in ceph_parse_crush_location() 2947 loc = alloc_crush_loc(type_name_len, name_len); in ceph_parse_crush_location() 2952 memcpy(loc->cl_loc.cl_type_name, type_name, type_name_len); in ceph_parse_crush_location() 2953 loc->cl_loc.cl_type_name[type_name_len] = '\0'; in ceph_parse_crush_location() 2955 loc->cl_loc.cl_name = loc->cl_data + type_name_len + 1; in ceph_parse_crush_location()
|
Completed in 8 milliseconds