Lines Matching refs:volume
27 struct afs_server_list *afs_alloc_server_list(struct afs_volume *volume,
33 unsigned int type_mask = 1 << volume->type;
82 server = afs_lookup_server(volume->cell, key, &vldb->fs_server[i],
100 afs_put_server(volume->cell->net, server,
111 slist->servers[j].volume = volume;
125 afs_put_serverlist(volume->cell->net, slist);
155 * Attach a volume to the servers it is going to use.
157 void afs_attach_volume_to_servers(struct afs_volume *volume, struct afs_server_list *slist)
164 down_write(&volume->cell->vs_lock);
172 if (volume->vid <= pe->volume->vid)
179 up_write(&volume->cell->vs_lock);
183 * Reattach a volume to the servers it is going to use when server list is
187 void afs_reattach_volume_to_servers(struct afs_volume *volume, struct afs_server_list *new,
192 down_write(&volume->cell->vs_lock);
218 if (volume->vid <= s->volume->vid)
229 up_write(&volume->cell->vs_lock);
233 * Detach a volume from the servers it has been using.
235 void afs_detach_volume_from_servers(struct afs_volume *volume, struct afs_server_list *slist)
242 down_write(&volume->cell->vs_lock);
248 up_write(&volume->cell->vs_lock);