Lines Matching defs:cell
108 * Probe to see if a cell may exist. This prevents positive dentries from
113 struct afs_cell *cell;
128 cell = afs_find_cell(net, name, len, afs_cell_trace_use_probe);
129 if (!IS_ERR(cell)) {
130 afs_unuse_cell(net, cell, afs_cell_trace_unuse_probe);
189 * Look up @cell in a dynroot directory. This is a substitution for the
190 * local cell name for the net namespace.
194 struct afs_cell *cell;
209 cell = net->ws_cell;
210 if (cell) {
211 len = cell->name_len;
212 memcpy(name, cell->name, len + 1);
217 if (!cell)
222 /* We don't want to d_add() the @cell dentry here as we don't want to
223 * the cached dentry to hide changes to the local cell name.
251 memcmp(dentry->d_name.name, "@cell", 5) == 0)
277 * Create a manually added cell mount directory.
280 int afs_dynroot_mkdir(struct afs_net *net, struct afs_cell *cell)
292 subdir = lookup_one_len(cell->name, root, cell->name_len);
307 * Remove a manually added cell mount directory.
310 void afs_dynroot_rmdir(struct afs_net *net, struct afs_cell *cell)
321 /* Don't want to trigger a lookup call, which will re-add the cell */
322 subdir = try_lookup_one_len(cell->name, root, cell->name_len);
342 * Populate a newly created dynamic root with cell names.
346 struct afs_cell *cell;
353 hlist_for_each_entry(cell, &net->proc_cells, proc_link) {
354 ret = afs_dynroot_mkdir(net, cell);