Home
last modified time | relevance | path

Searched refs:vllist (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.10/fs/afs/
Dvl_list.c53 struct afs_vlserver_list *vllist; in afs_alloc_vlserver_list() local
55 vllist = kzalloc(struct_size(vllist, servers, nr_servers), GFP_KERNEL); in afs_alloc_vlserver_list()
56 if (vllist) { in afs_alloc_vlserver_list()
57 atomic_set(&vllist->usage, 1); in afs_alloc_vlserver_list()
58 rwlock_init(&vllist->lock); in afs_alloc_vlserver_list()
61 return vllist; in afs_alloc_vlserver_list()
64 void afs_put_vlserverlist(struct afs_net *net, struct afs_vlserver_list *vllist) in afs_put_vlserverlist() argument
66 if (vllist) { in afs_put_vlserverlist()
67 unsigned int u = atomic_dec_return(&vllist->usage); in afs_put_vlserverlist()
73 for (i = 0; i < vllist->nr_servers; i++) { in afs_put_vlserverlist()
[all …]
Dcell.c118 struct afs_vlserver_list *vllist; in afs_alloc_cell() local
176 vllist = afs_parse_text_addrs(net, in afs_alloc_cell()
179 if (IS_ERR(vllist)) { in afs_alloc_cell()
180 ret = PTR_ERR(vllist); in afs_alloc_cell()
184 vllist->source = DNS_RECORD_FROM_CONFIG; in afs_alloc_cell()
185 vllist->status = DNS_LOOKUP_NOT_DONE; in afs_alloc_cell()
189 vllist = afs_alloc_vlserver_list(0); in afs_alloc_cell()
190 if (!vllist) in afs_alloc_cell()
192 vllist->source = DNS_RECORD_UNAVAILABLE; in afs_alloc_cell()
193 vllist->status = DNS_LOOKUP_NOT_DONE; in afs_alloc_cell()
[all …]
Dvl_probe.c185 struct afs_vlserver_list *vllist) in afs_send_vl_probes() argument
194 for (i = 0; i < vllist->nr_servers; i++) { in afs_send_vl_probes()
195 server = vllist->servers[i].server; in afs_send_vl_probes()
210 int afs_wait_for_vl_probes(struct afs_vlserver_list *vllist, in afs_wait_for_vl_probes() argument
219 _enter("%u,%lx", vllist->nr_servers, untried); in afs_wait_for_vl_probes()
222 for (i = 0; i < vllist->nr_servers; i++) { in afs_wait_for_vl_probes()
224 server = vllist->servers[i].server; in afs_wait_for_vl_probes()
234 waits = kmalloc(array_size(vllist->nr_servers, sizeof(*waits)), GFP_KERNEL); in afs_wait_for_vl_probes()
238 for (i = 0; i < vllist->nr_servers; i++) { in afs_wait_for_vl_probes()
240 server = vllist->servers[i].server; in afs_wait_for_vl_probes()
[all …]
Daddr_list.c69 struct afs_vlserver_list *vllist; in afs_parse_text_addrs() local
120 vllist = afs_alloc_vlserver_list(1); in afs_parse_text_addrs()
121 if (!vllist) in afs_parse_text_addrs()
124 vllist->nr_servers = 1; in afs_parse_text_addrs()
125 vllist->servers[0].server = afs_alloc_vlserver("<dummy>", 7, AFS_VL_PORT); in afs_parse_text_addrs()
126 if (!vllist->servers[0].server) in afs_parse_text_addrs()
206 rcu_assign_pointer(vllist->servers[0].server->addresses, alist); in afs_parse_text_addrs()
208 return vllist; in afs_parse_text_addrs()
221 afs_put_vlserverlist(net, vllist); in afs_parse_text_addrs()
243 struct afs_vlserver_list *vllist; in afs_dns_query() local
[all …]
Dproc.c18 struct afs_vlserver_list *vllist; member
36 struct afs_vlserver_list *vllist; in afs_proc_cells_show() local
46 vllist = rcu_dereference(cell->vl_servers); in afs_proc_cells_show()
53 vllist ? vllist->nr_servers : 0, in afs_proc_cells_show()
285 const struct afs_vlserver_list *vllist = priv->vllist; in afs_proc_cell_vlservers_show() local
293 dns_record_sources[vllist ? vllist->source : 0], in afs_proc_cell_vlservers_show()
294 dns_lookup_statuses[vllist ? vllist->status : 0]); in afs_proc_cell_vlservers_show()
324 struct afs_vlserver_list *vllist; in afs_proc_cell_vlservers_start() local
330 vllist = rcu_dereference(cell->vl_servers); in afs_proc_cell_vlservers_start()
331 priv->vllist = vllist; in afs_proc_cell_vlservers_start()
[all …]
Dinternal.h1465 static inline struct afs_vlserver_list *afs_get_vlserverlist(struct afs_vlserver_list *vllist) in afs_get_vlserverlist() argument
1467 if (vllist) in afs_get_vlserverlist()
1468 atomic_inc(&vllist->usage); in afs_get_vlserverlist()
1469 return vllist; in afs_get_vlserverlist()