Lines Matching full:cell
18 * Insert a volume into a cell. If there's an existing volume record, that is
21 static struct afs_volume *afs_insert_volume_into_cell(struct afs_cell *cell, in afs_insert_volume_into_cell() argument
27 write_seqlock(&cell->volume_lock); in afs_insert_volume_into_cell()
29 pp = &cell->volumes.rb_node; in afs_insert_volume_into_cell()
44 rb_replace_node_rcu(&p->cell_node, &volume->cell_node, &cell->volumes); in afs_insert_volume_into_cell()
49 rb_insert_color(&volume->cell_node, &cell->volumes); in afs_insert_volume_into_cell()
50 hlist_add_head_rcu(&volume->proc_link, &cell->proc_volumes); in afs_insert_volume_into_cell()
53 write_sequnlock(&cell->volume_lock); in afs_insert_volume_into_cell()
60 struct afs_cell *cell = volume->cell; in afs_remove_volume_from_cell() local
65 write_seqlock(&cell->volume_lock); in afs_remove_volume_from_cell()
68 rb_erase(&volume->cell_node, &cell->volumes); in afs_remove_volume_from_cell()
69 write_sequnlock(&cell->volume_lock); in afs_remove_volume_from_cell()
91 volume->cell = afs_get_cell(params->cell, afs_cell_trace_get_vol); in afs_alloc_volume()
124 afs_put_cell(volume->cell, afs_cell_trace_put_vol); in afs_alloc_volume()
143 volume = afs_insert_volume_into_cell(params->cell, candidate); in afs_lookup_volume()
154 static struct afs_vldb_entry *afs_vl_lookup_vldb(struct afs_cell *cell, in afs_vl_lookup_vldb() argument
163 if (!afs_begin_vlserver_operation(&vc, cell, key)) in afs_vl_lookup_vldb()
179 * "%[cell:]volume[.]" R/W volume
180 * "#[cell:]volume[.]" R/O or R/W volume (rwparent=0),
182 * "%[cell:]volume.readonly" R/O volume
183 * "#[cell:]volume.readonly" R/O volume
184 * "%[cell:]volume.backup" Backup volume
185 * "#[cell:]volume.backup" Backup volume
187 * The cell name is optional, and defaults to the current cell.
204 vldb = afs_vl_lookup_vldb(params->cell, params->key, in afs_create_volume()
250 afs_put_serverlist(volume->cell->net, slist); in afs_destroy_volume()
251 afs_put_cell(volume->cell, afs_cell_trace_put_vol); in afs_destroy_volume()
317 volume->cell->name, volume->vid); in afs_activate_volume()
369 vldb = afs_vl_lookup_vldb(volume->cell, key, idbuf, idsz); in afs_update_volume_status()
412 afs_put_serverlist(volume->cell->net, discard); in afs_update_volume_status()