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()
211 * Parse the source name to get cell name, volume name, volume type and R/W
215 * "%[cell:]volume[.]" R/W volume
216 * "#[cell:]volume[.]" R/O or R/W volume (R/O parent),
218 * "%[cell:]volume.readonly" R/O volume
219 * "#[cell:]volume.readonly" R/O volume
220 * "%[cell:]volume.backup" Backup volume
221 * "#[cell:]volume.backup" Backup volume
226 struct afs_cell *cell; in afs_parse_source() local
257 /* split the cell name out if there is one */ in afs_parse_source()
287 _debug("cell %*.*s [%p]", in afs_parse_source()
288 cellnamesz, cellnamesz, cellname ?: "", ctx->cell); in afs_parse_source()
290 /* lookup the cell record */ in afs_parse_source()
292 cell = afs_lookup_cell(ctx->net, cellname, cellnamesz, in afs_parse_source()
295 if (IS_ERR(cell)) { in afs_parse_source()
296 pr_err("kAFS: unable to lookup cell '%*.*s'\n", in afs_parse_source()
298 return PTR_ERR(cell); in afs_parse_source()
300 afs_unuse_cell(ctx->cell, afs_cell_trace_unuse_parse); in afs_parse_source()
301 afs_see_cell(cell, afs_cell_trace_see_source); in afs_parse_source()
302 ctx->cell = cell; in afs_parse_source()
305 _debug("CELL:%s [%p] VOLUME:%*.*s SUFFIX:%s TYPE:%d%s", in afs_parse_source()
306 ctx->cell->name, ctx->cell, in afs_parse_source()
353 * Validate the options, get the cell key and look up the volume.
359 struct afs_cell *cell; in afs_validate_fc() local
369 if (!ctx->cell) { in afs_validate_fc()
370 pr_warn("kAFS: No cell specified\n"); in afs_validate_fc()
376 key = afs_request_key(ctx->cell); in afs_validate_fc()
387 if (test_bit(AFS_CELL_FL_CHECK_ALIAS, &ctx->cell->flags)) { in afs_validate_fc()
388 ret = afs_cell_detect_alias(ctx->cell, key); in afs_validate_fc()
395 cell = afs_use_cell(ctx->cell->alias_of, in afs_validate_fc()
397 afs_unuse_cell(ctx->cell, afs_cell_trace_unuse_fc); in afs_validate_fc()
398 ctx->cell = cell; in afs_validate_fc()
428 as->cell == ctx->cell && in afs_test_super()
512 as->cell = afs_use_cell(ctx->cell, afs_cell_trace_use_sbi); in afs_alloc_sbi()
524 afs_unuse_cell(as->cell, afs_cell_trace_unuse_sbi); in afs_destroy_sbi()
590 trace_afs_get_tree(as->cell, as->volume); in afs_get_tree()
607 afs_unuse_cell(ctx->cell, afs_cell_trace_unuse_fc); in afs_free_fc()
624 struct afs_cell *cell; in afs_init_fs_context() local
633 /* Default to the workstation cell. */ in afs_init_fs_context()
634 cell = afs_find_cell(ctx->net, NULL, 0, afs_cell_trace_use_fc); in afs_init_fs_context()
635 if (IS_ERR(cell)) in afs_init_fs_context()
636 cell = NULL; in afs_init_fs_context()
637 ctx->cell = cell; in afs_init_fs_context()