Lines Matching refs:j
36 int ret = -ENOMEM, nr_servers = 0, i, j; in afs_alloc_server_list() local
64 for (j = 0; j < slist->nr_servers; j++) in afs_alloc_server_list()
65 if (memcmp(&slist->servers[j].server->uuid, in afs_alloc_server_list()
69 if (j < slist->nr_servers) { in afs_alloc_server_list()
70 if (slist->servers[j].server == server) { in afs_alloc_server_list()
76 memmove(slist->servers + j + 1, in afs_alloc_server_list()
77 slist->servers + j, in afs_alloc_server_list()
78 (slist->nr_servers - j) * sizeof(struct afs_server_entry)); in afs_alloc_server_list()
81 slist->servers[j].server = server; in afs_alloc_server_list()
105 int i, j; in afs_annotate_server_list() local
119 for (j = 0; j < new->nr_servers; j++) { in afs_annotate_server_list()
120 if (new->servers[j].server == cur) { in afs_annotate_server_list()
121 new->preferred = j; in afs_annotate_server_list()
130 j = 0; in afs_annotate_server_list()
131 while (i < old->nr_servers && j < new->nr_servers) { in afs_annotate_server_list()
132 if (new->servers[j].server == old->servers[i].server) { in afs_annotate_server_list()
135 new->servers[j].cb_interest = cbi; in afs_annotate_server_list()
139 j++; in afs_annotate_server_list()
143 if (new->servers[j].server < old->servers[i].server) { in afs_annotate_server_list()
144 j++; in afs_annotate_server_list()