Lines Matching defs: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,
24 write_seqlock(&cell->volume_lock);
26 pp = &cell->volumes.rb_node;
41 rb_replace_node_rcu(&p->cell_node, &volume->cell_node, &cell->volumes);
46 rb_insert_color(&volume->cell_node, &cell->volumes);
47 hlist_add_head_rcu(&volume->proc_link, &cell->proc_volumes);
50 write_sequnlock(&cell->volume_lock);
57 struct afs_cell *cell = volume->cell;
60 trace_afs_volume(volume->vid, refcount_read(&cell->ref),
62 write_seqlock(&cell->volume_lock);
65 rb_erase(&volume->cell_node, &cell->volumes);
66 write_sequnlock(&cell->volume_lock);
87 volume->cell = afs_get_cell(params->cell, afs_cell_trace_get_vol);
98 slist = afs_alloc_server_list(params->cell, params->key, vldb, type_mask);
110 afs_put_cell(volume->cell, afs_cell_trace_put_vol);
129 volume = afs_insert_volume_into_cell(params->cell, candidate);
138 static struct afs_vldb_entry *afs_vl_lookup_vldb(struct afs_cell *cell,
147 if (!afs_begin_vlserver_operation(&vc, cell, key))
163 * "%[cell:]volume[.]" R/W volume
164 * "#[cell:]volume[.]" R/O or R/W volume (rwparent=0),
166 * "%[cell:]volume.readonly" R/O volume
167 * "#[cell:]volume.readonly" R/O volume
168 * "%[cell:]volume.backup" Backup volume
169 * "#[cell:]volume.backup" Backup volume
171 * The cell name is optional, and defaults to the current cell.
188 vldb = afs_vl_lookup_vldb(params->cell, params->key,
232 afs_put_cell(volume->cell, afs_cell_trace_put_vol);
298 volume->cell->name, volume->vid);
350 vldb = afs_vl_lookup_vldb(volume->cell, key, idbuf, idsz);
365 new = afs_alloc_server_list(volume->cell, key,
389 afs_put_serverlist(volume->cell->net, discard);