Home
last modified time | relevance | path

Searched refs:alist (Results 1 – 13 of 13) sorted by relevance

/fs/afs/
Daddr_list.c19 void afs_put_addrlist(struct afs_addr_list *alist) in afs_put_addrlist() argument
21 if (alist && refcount_dec_and_test(&alist->usage)) in afs_put_addrlist()
22 kfree_rcu(alist, rcu); in afs_put_addrlist()
32 struct afs_addr_list *alist; in afs_alloc_addrlist() local
40 alist = kzalloc(struct_size(alist, addrs, nr), GFP_KERNEL); in afs_alloc_addrlist()
41 if (!alist) in afs_alloc_addrlist()
44 refcount_set(&alist->usage, 1); in afs_alloc_addrlist()
45 alist->max_addrs = nr; in afs_alloc_addrlist()
48 struct sockaddr_rxrpc *srx = &alist->addrs[i]; in afs_alloc_addrlist()
57 return alist; in afs_alloc_addrlist()
[all …]
Dserver.c27 const struct afs_addr_list *alist; in afs_find_server() local
44 alist = rcu_dereference(server->addresses); in afs_find_server()
45 for (i = alist->nr_ipv4; i < alist->nr_addrs; i++) { in afs_find_server()
46 b = &alist->addrs[i].transport.sin6; in afs_find_server()
60 alist = rcu_dereference(server->addresses); in afs_find_server()
61 for (i = 0; i < alist->nr_ipv4; i++) { in afs_find_server()
62 b = &alist->addrs[i].transport.sin; in afs_find_server()
141 const struct afs_addr_list *alist; in afs_install_server() local
192 alist = rcu_dereference_protected(server->addresses, in afs_install_server()
203 if (alist->nr_ipv4 > 0) in afs_install_server()
[all …]
Dfs_probe.c79 struct afs_addr_list *alist = ac->alist; in afs_fs_probe_not_done() local
91 set_bit(index, &alist->failed); in afs_fs_probe_not_done()
103 struct afs_addr_list *alist = call->alist; in afs_fileserver_probe_result() local
125 clear_bit(index, &alist->responded); in afs_fileserver_probe_result()
139 clear_bit(index, &alist->responded); in afs_fileserver_probe_result()
140 set_bit(index, &alist->failed); in afs_fileserver_probe_result()
151 clear_bit(index, &alist->failed); in afs_fileserver_probe_result()
156 alist->addrs[index].srx_service = call->service_id; in afs_fileserver_probe_result()
161 alist->addrs[index].srx_service = call->service_id; in afs_fileserver_probe_result()
174 alist->preferred = index; in afs_fileserver_probe_result()
[all …]
Dvl_probe.c49 struct afs_addr_list *alist = call->alist; in afs_vlserver_probe_result() local
91 clear_bit(index, &alist->responded); in afs_vlserver_probe_result()
92 set_bit(index, &alist->failed); in afs_vlserver_probe_result()
103 set_bit(index, &alist->responded); in afs_vlserver_probe_result()
104 clear_bit(index, &alist->failed); in afs_vlserver_probe_result()
109 alist->addrs[index].srx_service = call->service_id; in afs_vlserver_probe_result()
114 alist->addrs[index].srx_service = call->service_id; in afs_vlserver_probe_result()
122 alist->preferred = index; in afs_vlserver_probe_result()
134 server_index, index, &alist->addrs[index].transport, rtt_us, ret); in afs_vlserver_probe_result()
158 ac.alist = rcu_dereference_protected(server->addresses, in afs_do_probe_vlserver()
[all …]
Dproc.c288 const struct afs_addr_list *alist; in afs_proc_cell_vlservers_show() local
300 alist = rcu_dereference(vlserver->addresses); in afs_proc_cell_vlservers_show()
304 dns_record_sources[alist ? alist->source : entry->source], in afs_proc_cell_vlservers_show()
305 dns_lookup_statuses[alist ? alist->status : entry->status]); in afs_proc_cell_vlservers_show()
306 if (alist) { in afs_proc_cell_vlservers_show()
307 for (i = 0; i < alist->nr_addrs; i++) in afs_proc_cell_vlservers_show()
309 alist->preferred == i ? '>' : '-', in afs_proc_cell_vlservers_show()
310 &alist->addrs[i].transport); in afs_proc_cell_vlservers_show()
379 struct afs_addr_list *alist; in afs_proc_servers_show() local
388 alist = rcu_dereference(server->addresses); in afs_proc_servers_show()
[all …]
Dvl_rotate.c92 struct afs_addr_list *alist; in afs_select_vlserver() local
221 ASSERTCMP(vc->ac.alist, ==, NULL); in afs_select_vlserver()
228 alist = rcu_dereference_protected(vlserver->addresses, in afs_select_vlserver()
230 afs_get_addrlist(alist); in afs_select_vlserver()
235 if (!vc->ac.alist) in afs_select_vlserver()
236 vc->ac.alist = alist; in afs_select_vlserver()
238 afs_put_addrlist(alist); in afs_select_vlserver()
243 ASSERT(vc->ac.alist); in afs_select_vlserver()
250 _debug("VL address %d/%d", vc->ac.index, vc->ac.alist->nr_addrs); in afs_select_vlserver()
252 _leave(" = t %pISpc", &vc->ac.alist->addrs[vc->ac.index].transport); in afs_select_vlserver()
[all …]
Dvl_list.c89 struct afs_addr_list *alist; in afs_extract_vl_addrs() local
93 alist = afs_alloc_addrlist(nr_addrs, VL_SERVICE, port); in afs_extract_vl_addrs()
94 if (!alist) in afs_extract_vl_addrs()
97 return alist; in afs_extract_vl_addrs()
112 afs_merge_fs_addr4(alist, x[0], port); in afs_extract_vl_addrs()
122 afs_merge_fs_addr6(alist, x, port); in afs_extract_vl_addrs()
135 if (alist->nr_ipv4 < alist->nr_addrs) in afs_extract_vl_addrs()
136 alist->preferred = alist->nr_ipv4; in afs_extract_vl_addrs()
139 return alist; in afs_extract_vl_addrs()
143 afs_put_addrlist(alist); in afs_extract_vl_addrs()
Drotate.c111 struct afs_addr_list *alist; in afs_select_fileserver() local
368 ASSERTCMP(op->ac.alist, ==, NULL); in afs_select_fileserver()
387 alist = rcu_dereference_protected(server->addresses, in afs_select_fileserver()
389 afs_get_addrlist(alist); in afs_select_fileserver()
395 if (!op->ac.alist) in afs_select_fileserver()
396 op->ac.alist = alist; in afs_select_fileserver()
398 afs_put_addrlist(alist); in afs_select_fileserver()
403 ASSERT(op->ac.alist); in afs_select_fileserver()
411 op->index, op->ac.index, op->ac.alist->nr_addrs, in afs_select_fileserver()
412 &op->ac.alist->addrs[op->ac.index].transport); in afs_select_fileserver()
[all …]
Dvlclient.c183 struct afs_addr_list *alist; in afs_deliver_vl_get_addrs_u() local
211 alist = afs_alloc_addrlist(nentries, FS_SERVICE, AFS_FS_PORT); in afs_deliver_vl_get_addrs_u()
212 if (!alist) in afs_deliver_vl_get_addrs_u()
214 alist->version = uniquifier; in afs_deliver_vl_get_addrs_u()
215 call->ret_alist = alist; in afs_deliver_vl_get_addrs_u()
230 alist = call->ret_alist; in afs_deliver_vl_get_addrs_u()
234 if (alist->nr_addrs < call->count2) in afs_deliver_vl_get_addrs_u()
235 afs_merge_fs_addr4(alist, *bp++, AFS_FS_PORT); in afs_deliver_vl_get_addrs_u()
423 struct afs_addr_list *alist; in afs_deliver_yfsvl_get_endpoints() local
453 alist = afs_alloc_addrlist(call->count, FS_SERVICE, AFS_FS_PORT); in afs_deliver_yfsvl_get_endpoints()
[all …]
Drxrpc.c186 afs_put_addrlist(call->alist); in afs_put_call()
295 struct sockaddr_rxrpc *srx = &ac->alist->addrs[ac->index]; in afs_make_call()
313 call->alist = afs_get_addrlist(ac->alist); in afs_make_call()
463 &call->alist->addrs[call->addr_ix].transport); in afs_log_error()
Dinternal.h99 struct afs_addr_list *alist; /* Address is alist[addr_ix] */ member
722 struct afs_addr_list *alist; /* Current address list (pins ref) */ member
941 static inline struct afs_addr_list *afs_get_addrlist(struct afs_addr_list *alist) in afs_get_addrlist() argument
943 if (alist) in afs_get_addrlist()
944 refcount_inc(&alist->usage); in afs_get_addrlist()
945 return alist; in afs_get_addrlist()
Dafs_vl.h144 extern void afs_put_address_list(struct afs_address_list *alist);
/fs/xfs/
Dxfs_ioctl.c311 struct xfs_attrlist *alist = context->buffer; in xfs_ioc_attr_put_listent() local
318 ASSERT(context->firstu >= sizeof(*alist)); in xfs_ioc_attr_put_listent()
327 arraytop = sizeof(*alist) + in xfs_ioc_attr_put_listent()
328 context->count * sizeof(alist->al_offset[0]); in xfs_ioc_attr_put_listent()
335 alist->al_more = 1; in xfs_ioc_attr_put_listent()
344 alist->al_offset[context->count++] = context->firstu; in xfs_ioc_attr_put_listent()
345 alist->al_count = context->count; in xfs_ioc_attr_put_listent()
380 struct xfs_attrlist *alist; in xfs_ioc_attr_list() local
423 alist = context.buffer; in xfs_ioc_attr_list()
424 alist->al_count = 0; in xfs_ioc_attr_list()
[all …]