Home
last modified time | relevance | path

Searched refs:nr_servers (Results 1 – 14 of 14) sorted by relevance

/fs/afs/
Dserver_list.c17 for (i = 0; i < slist->nr_servers; i++) in afs_put_serverlist()
34 int ret = -ENOMEM, nr_servers = 0, i, j; in afs_alloc_server_list() local
36 for (i = 0; i < vldb->nr_servers; i++) in afs_alloc_server_list()
38 nr_servers++; in afs_alloc_server_list()
40 slist = kzalloc(struct_size(slist, servers, nr_servers), GFP_KERNEL); in afs_alloc_server_list()
51 for (i = 0; i < vldb->nr_servers; i++) { in afs_alloc_server_list()
66 for (j = 0; j < slist->nr_servers; j++) in afs_alloc_server_list()
71 if (j < slist->nr_servers) { in afs_alloc_server_list()
80 (slist->nr_servers - j) * sizeof(struct afs_server_entry)); in afs_alloc_server_list()
84 slist->nr_servers++; in afs_alloc_server_list()
[all …]
Dvl_list.c47 struct afs_vlserver_list *afs_alloc_vlserver_list(unsigned int nr_servers) in afs_alloc_vlserver_list() argument
51 vllist = kzalloc(struct_size(vllist, servers, nr_servers), GFP_KERNEL); in afs_alloc_vlserver_list()
66 for (i = 0; i < vllist->nr_servers; i++) { in afs_put_vlserverlist()
160 int ret = -ENOMEM, nr_servers, i, j; in afs_extract_vlserver_list() local
174 nr_servers = hdr->nr_servers; in afs_extract_vlserver_list()
176 vllist = afs_alloc_vlserver_list(nr_servers); in afs_extract_vlserver_list()
227 for (i = 0; i < previous->nr_servers; i++) { in afs_extract_vlserver_list()
256 if (vllist->nr_servers >= nr_servers) { in afs_extract_vlserver_list()
257 _debug("skip %u >= %u", vllist->nr_servers, nr_servers); in afs_extract_vlserver_list()
286 for (j = 0; j < vllist->nr_servers; j++) { in afs_extract_vlserver_list()
[all …]
Dvl_probe.c194 for (i = 0; i < vllist->nr_servers; i++) { in afs_send_vl_probes()
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()
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()
250 for (i = 0; i < vllist->nr_servers; i++) { in afs_wait_for_vl_probes()
268 for (i = 0; i < vllist->nr_servers; i++) { in afs_wait_for_vl_probes()
Dvl_rotate.c78 if (!vc->server_list->nr_servers) in afs_start_vl_iteration()
81 vc->untried = (1UL << vc->server_list->nr_servers) - 1; in afs_start_vl_iteration()
198 for (i = 0; i < vc->server_list->nr_servers; i++) { in afs_select_vlserver()
269 for (i = 0; i < vc->server_list->nr_servers; i++) { in afs_select_vlserver()
313 sl->nr_servers, sl->index); in afs_vl_dump_edestaddrreq()
314 for (i = 0; i < sl->nr_servers; i++) { in afs_vl_dump_edestaddrreq()
Dvlclient.c22 u32 tmp, nr_servers, vlflags; in afs_deliver_vl_get_entry_by_name_u() local
35 nr_servers = ntohl(uvldb->nServers); in afs_deliver_vl_get_entry_by_name_u()
36 if (nr_servers > AFS_NMAXNSERVERS) in afs_deliver_vl_get_entry_by_name_u()
37 nr_servers = AFS_NMAXNSERVERS; in afs_deliver_vl_get_entry_by_name_u()
47 for (i = 0; i < nr_servers; i++) { in afs_deliver_vl_get_entry_by_name_u()
55 for (i = 0; i < nr_servers; i++) { in afs_deliver_vl_get_entry_by_name_u()
59 int n = entry->nr_servers; in afs_deliver_vl_get_entry_by_name_u()
86 entry->nr_servers++; in afs_deliver_vl_get_entry_by_name_u()
Dfs_probe.c242 _enter("%u,%lx", slist->nr_servers, untried); in afs_wait_for_fs_probes()
245 for (i = 0; i < slist->nr_servers; i++) { in afs_wait_for_fs_probes()
257 waits = kmalloc(array_size(slist->nr_servers, sizeof(*waits)), GFP_KERNEL); in afs_wait_for_fs_probes()
261 for (i = 0; i < slist->nr_servers; i++) { in afs_wait_for_fs_probes()
273 for (i = 0; i < slist->nr_servers; i++) { in afs_wait_for_fs_probes()
291 for (i = 0; i < slist->nr_servers; i++) { in afs_wait_for_fs_probes()
Drotate.c34 op->untried = (1UL << op->server_list->nr_servers) - 1; in afs_start_fs_iteration()
40 for (i = 0; i < op->server_list->nr_servers; i++) { in afs_start_fs_iteration()
345 for (i = 0; i < op->server_list->nr_servers; i++) { in afs_select_fileserver()
452 for (i = 0; i < op->server_list->nr_servers; i++) { in afs_select_fileserver()
494 sl->nr_servers, sl->preferred, sl->vnovol_mask); in afs_dump_edestaddrreq()
495 for (i = 0; i < sl->nr_servers; i++) { in afs_dump_edestaddrreq()
Dvl_alias.c132 while (a < la->nr_servers && b < lb->nr_servers) { in afs_compare_volume_slists()
Dcell.c472 if (vllist->nr_servers > 0 || p->nr_servers == 0) { in afs_update_cell()
605 if (cell->vl_servers->nr_servers) in afs_unuse_cell()
889 if (vllist->nr_servers > 0) in afs_manage_cells()
Dproc.c53 vllist ? vllist->nr_servers : 0, in afs_proc_cells_show()
338 if (pos - 1 >= vllist->nr_servers) in afs_proc_cell_vlservers_start()
354 if (!vllist || pos - 1 >= vllist->nr_servers) in afs_proc_cell_vlservers_next()
Dinternal.h450 u8 nr_servers; member
481 u8 nr_servers; /* Number of server records */ member
559 unsigned char nr_servers; member
Daddr_list.c124 vllist->nr_servers = 1; in afs_parse_text_addrs()
Dinode.c611 for (i = 0; i < slist->nr_servers; i++) { in afs_check_server_good()
Ddir.c769 for (i = 0; i < slist->nr_servers; i++) { in afs_server_supports_ibulk()