Lines Matching refs:volume

27 struct afs_server_list *afs_alloc_server_list(struct afs_volume *volume,  in afs_alloc_server_list()  argument
33 unsigned int type_mask = 1 << volume->type; in afs_alloc_server_list()
82 server = afs_lookup_server(volume->cell, key, &vldb->fs_server[i], in afs_alloc_server_list()
100 afs_put_server(volume->cell->net, server, in afs_alloc_server_list()
111 slist->servers[j].volume = volume; in afs_alloc_server_list()
125 afs_put_serverlist(volume->cell->net, slist); in afs_alloc_server_list()
157 void afs_attach_volume_to_servers(struct afs_volume *volume, struct afs_server_list *slist) in afs_attach_volume_to_servers() argument
164 down_write(&volume->cell->vs_lock); in afs_attach_volume_to_servers()
172 if (volume->vid <= pe->volume->vid) in afs_attach_volume_to_servers()
179 up_write(&volume->cell->vs_lock); in afs_attach_volume_to_servers()
187 void afs_reattach_volume_to_servers(struct afs_volume *volume, struct afs_server_list *new, in afs_reattach_volume_to_servers() argument
192 down_write(&volume->cell->vs_lock); in afs_reattach_volume_to_servers()
218 if (volume->vid <= s->volume->vid) in afs_reattach_volume_to_servers()
229 up_write(&volume->cell->vs_lock); in afs_reattach_volume_to_servers()
235 void afs_detach_volume_from_servers(struct afs_volume *volume, struct afs_server_list *slist) in afs_detach_volume_from_servers() argument
242 down_write(&volume->cell->vs_lock); in afs_detach_volume_from_servers()
248 up_write(&volume->cell->vs_lock); in afs_detach_volume_from_servers()