Lines Matching defs:cell
107 * Probe to see if a cell may exist. This prevents positive dentries from
112 struct afs_cell *cell;
127 cell = afs_find_cell(net, name, len, afs_cell_trace_use_probe);
128 if (!IS_ERR(cell)) {
129 afs_unuse_cell(net, cell, afs_cell_trace_unuse_probe);
188 * Look up @cell in a dynroot directory. This is a substitution for the
189 * local cell name for the net namespace.
193 struct afs_cell *cell;
208 cell = net->ws_cell;
209 if (cell) {
210 len = cell->name_len;
211 memcpy(name, cell->name, len + 1);
216 if (!cell)
221 /* We don't want to d_add() the @cell dentry here as we don't want to
222 * the cached dentry to hide changes to the local cell name.
250 memcmp(dentry->d_name.name, "@cell", 5) == 0)
276 * Create a manually added cell mount directory.
279 int afs_dynroot_mkdir(struct afs_net *net, struct afs_cell *cell)
291 subdir = lookup_one_len(cell->name, root, cell->name_len);
306 * Remove a manually added cell mount directory.
309 void afs_dynroot_rmdir(struct afs_net *net, struct afs_cell *cell)
320 /* Don't want to trigger a lookup call, which will re-add the cell */
321 subdir = try_lookup_one_len(cell->name, root, cell->name_len);
341 * Populate a newly created dynamic root with cell names.
345 struct afs_cell *cell;
352 hlist_for_each_entry(cell, &net->proc_cells, proc_link) {
353 ret = afs_dynroot_mkdir(net, cell);