Searched refs:vllist (Results 1 – 6 of 6) sorted by relevance
/fs/afs/ |
D | vl_list.c | 49 struct afs_vlserver_list *vllist; in afs_alloc_vlserver_list() local 51 vllist = kzalloc(struct_size(vllist, servers, nr_servers), GFP_KERNEL); in afs_alloc_vlserver_list() 52 if (vllist) { in afs_alloc_vlserver_list() 53 refcount_set(&vllist->ref, 1); in afs_alloc_vlserver_list() 54 rwlock_init(&vllist->lock); in afs_alloc_vlserver_list() 57 return vllist; in afs_alloc_vlserver_list() 60 void afs_put_vlserverlist(struct afs_net *net, struct afs_vlserver_list *vllist) in afs_put_vlserverlist() argument 62 if (vllist) { in afs_put_vlserverlist() 63 if (refcount_dec_and_test(&vllist->ref)) { in afs_put_vlserverlist() 66 for (i = 0; i < vllist->nr_servers; i++) { in afs_put_vlserverlist() [all …]
|
D | cell.c | 118 struct afs_vlserver_list *vllist; in afs_alloc_cell() local 178 vllist = afs_parse_text_addrs(net, in afs_alloc_cell() 181 if (IS_ERR(vllist)) { in afs_alloc_cell() 182 ret = PTR_ERR(vllist); in afs_alloc_cell() 186 vllist->source = DNS_RECORD_FROM_CONFIG; in afs_alloc_cell() 187 vllist->status = DNS_LOOKUP_NOT_DONE; in afs_alloc_cell() 191 vllist = afs_alloc_vlserver_list(0); in afs_alloc_cell() 192 if (!vllist) in afs_alloc_cell() 194 vllist->source = DNS_RECORD_UNAVAILABLE; in afs_alloc_cell() 195 vllist->status = DNS_LOOKUP_NOT_DONE; in afs_alloc_cell() [all …]
|
D | vl_probe.c | 185 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 …]
|
D | addr_list.c | 69 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 …]
|
D | proc.c | 18 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 …]
|
D | internal.h | 1503 static inline struct afs_vlserver_list *afs_get_vlserverlist(struct afs_vlserver_list *vllist) in afs_get_vlserverlist() argument 1505 if (vllist) in afs_get_vlserverlist() 1506 refcount_inc(&vllist->ref); in afs_get_vlserverlist() 1507 return vllist; in afs_get_vlserverlist()
|