Lines Matching full:cell

160 	struct afs_cell *cell = as->cell;  in afs_show_devname()  local
183 seq_printf(m, "%c%s:%s%s", pref, cell->name, volume->name, suf); in afs_show_devname()
213 * Parse the source name to get cell name, volume name, volume type and R/W
217 * "%[cell:]volume[.]" R/W volume
218 * "#[cell:]volume[.]" R/O or R/W volume (R/O parent),
220 * "%[cell:]volume.readonly" R/O volume
221 * "#[cell:]volume.readonly" R/O volume
222 * "%[cell:]volume.backup" Backup volume
223 * "#[cell:]volume.backup" Backup volume
228 struct afs_cell *cell; in afs_parse_source() local
259 /* split the cell name out if there is one */ in afs_parse_source()
289 _debug("cell %*.*s [%p]", in afs_parse_source()
290 cellnamesz, cellnamesz, cellname ?: "", ctx->cell); in afs_parse_source()
292 /* lookup the cell record */ in afs_parse_source()
294 cell = afs_lookup_cell(ctx->net, cellname, cellnamesz, in afs_parse_source()
296 if (IS_ERR(cell)) { in afs_parse_source()
297 pr_err("kAFS: unable to lookup cell '%*.*s'\n", in afs_parse_source()
299 return PTR_ERR(cell); in afs_parse_source()
301 afs_unuse_cell(ctx->net, ctx->cell, afs_cell_trace_unuse_parse); in afs_parse_source()
302 afs_see_cell(cell, afs_cell_trace_see_source); in afs_parse_source()
303 ctx->cell = cell; in afs_parse_source()
306 _debug("CELL:%s [%p] VOLUME:%*.*s SUFFIX:%s TYPE:%d%s", in afs_parse_source()
307 ctx->cell->name, ctx->cell, in afs_parse_source()
354 * Validate the options, get the cell key and look up the volume.
360 struct afs_cell *cell; in afs_validate_fc() local
370 if (!ctx->cell) { in afs_validate_fc()
371 pr_warn("kAFS: No cell specified\n"); in afs_validate_fc()
377 key = afs_request_key(ctx->cell); in afs_validate_fc()
388 if (test_bit(AFS_CELL_FL_CHECK_ALIAS, &ctx->cell->flags)) { in afs_validate_fc()
389 ret = afs_cell_detect_alias(ctx->cell, key); in afs_validate_fc()
396 cell = afs_use_cell(ctx->cell->alias_of, in afs_validate_fc()
398 afs_unuse_cell(ctx->net, ctx->cell, afs_cell_trace_unuse_fc); in afs_validate_fc()
399 ctx->cell = cell; in afs_validate_fc()
429 as->cell == ctx->cell && in afs_test_super()
519 as->cell = afs_use_cell(ctx->cell, afs_cell_trace_use_sbi); in afs_alloc_sbi()
532 afs_unuse_cell(net, as->cell, afs_cell_trace_unuse_sbi); in afs_destroy_sbi()
601 trace_afs_get_tree(as->cell, as->volume); in afs_get_tree()
618 afs_unuse_cell(ctx->net, ctx->cell, afs_cell_trace_unuse_fc); in afs_free_fc()
635 struct afs_cell *cell; in afs_init_fs_context() local
644 /* Default to the workstation cell. */ in afs_init_fs_context()
645 cell = afs_find_cell(ctx->net, NULL, 0, afs_cell_trace_use_fc); in afs_init_fs_context()
646 if (IS_ERR(cell)) in afs_init_fs_context()
647 cell = NULL; in afs_init_fs_context()
648 ctx->cell = cell; in afs_init_fs_context()