Lines Matching full:cell
15 * Insert a volume into a cell. If there's an existing volume record, that is
18 static struct afs_volume *afs_insert_volume_into_cell(struct afs_cell *cell, in afs_insert_volume_into_cell() argument
24 write_seqlock(&cell->volume_lock); in afs_insert_volume_into_cell()
26 pp = &cell->volumes.rb_node; in afs_insert_volume_into_cell()
41 rb_insert_color(&volume->cell_node, &cell->volumes); in afs_insert_volume_into_cell()
42 hlist_add_head_rcu(&volume->proc_link, &cell->proc_volumes); in afs_insert_volume_into_cell()
45 write_sequnlock(&cell->volume_lock); in afs_insert_volume_into_cell()
52 struct afs_cell *cell = volume->cell; in afs_remove_volume_from_cell() local
55 trace_afs_volume(volume->vid, refcount_read(&cell->ref), in afs_remove_volume_from_cell()
57 write_seqlock(&cell->volume_lock); in afs_remove_volume_from_cell()
59 rb_erase(&volume->cell_node, &cell->volumes); in afs_remove_volume_from_cell()
60 write_sequnlock(&cell->volume_lock); in afs_remove_volume_from_cell()
85 volume->cell = afs_get_cell(params->cell, afs_cell_trace_get_vol); in afs_alloc_volume()
96 slist = afs_alloc_server_list(params->cell, params->key, vldb, type_mask); in afs_alloc_volume()
108 afs_put_cell(volume->cell, afs_cell_trace_put_vol); in afs_alloc_volume()
127 volume = afs_insert_volume_into_cell(params->cell, candidate); in afs_lookup_volume()
136 static struct afs_vldb_entry *afs_vl_lookup_vldb(struct afs_cell *cell, in afs_vl_lookup_vldb() argument
145 if (!afs_begin_vlserver_operation(&vc, cell, key)) in afs_vl_lookup_vldb()
161 * "%[cell:]volume[.]" R/W volume
162 * "#[cell:]volume[.]" R/O or R/W volume (rwparent=0),
164 * "%[cell:]volume.readonly" R/O volume
165 * "#[cell:]volume.readonly" R/O volume
166 * "%[cell:]volume.backup" Backup volume
167 * "#[cell:]volume.backup" Backup volume
169 * The cell name is optional, and defaults to the current cell.
186 vldb = afs_vl_lookup_vldb(params->cell, params->key, in afs_create_volume()
230 afs_put_cell(volume->cell, afs_cell_trace_put_vol); in afs_destroy_volume()
282 volume->cell->name, volume->vid); in afs_activate_volume()
334 vldb = afs_vl_lookup_vldb(volume->cell, key, idbuf, idsz); in afs_update_volume_status()
349 new = afs_alloc_server_list(volume->cell, key, in afs_update_volume_status()
373 afs_put_serverlist(volume->cell->net, discard); in afs_update_volume_status()