Lines Matching refs:as

158 	struct afs_super_info *as = AFS_FS_S(root->d_sb);
159 struct afs_volume *volume = as->volume;
160 struct afs_cell *cell = as->cell;
164 if (as->dyn_root) {
192 struct afs_super_info *as = AFS_FS_S(root->d_sb);
195 if (as->dyn_root)
199 switch (as->flock_mode) {
423 struct afs_super_info *as = AFS_FS_S(sb);
425 return (as->net_ns == fc->net_ns &&
426 as->volume &&
427 as->volume->vid == ctx->volume->vid &&
428 as->cell == ctx->cell &&
429 !as->dyn_root);
434 struct afs_super_info *as = AFS_FS_S(sb);
436 return (as->net_ns == fc->net_ns &&
437 as->dyn_root);
450 struct afs_super_info *as = AFS_FS_S(sb);
462 if (!as->dyn_root)
469 if (as->dyn_root) {
472 sprintf(sb->s_id, "%llu", as->volume->vid);
473 afs_activate_volume(as->volume);
480 if (ctx->autocell || as->dyn_root)
488 if (as->dyn_root) {
495 rcu_assign_pointer(as->volume->sb, sb);
509 struct afs_super_info *as;
511 as = kzalloc(sizeof(struct afs_super_info), GFP_KERNEL);
512 if (as) {
513 as->net_ns = get_net(fc->net_ns);
514 as->flock_mode = ctx->flock_mode;
516 as->dyn_root = true;
518 as->cell = afs_use_cell(ctx->cell, afs_cell_trace_use_sbi);
519 as->volume = afs_get_volume(ctx->volume,
523 return as;
526 static void afs_destroy_sbi(struct afs_super_info *as)
528 if (as) {
529 struct afs_net *net = afs_net(as->net_ns);
530 afs_put_volume(net, as->volume, afs_volume_trace_put_destroy_sbi);
531 afs_unuse_cell(net, as->cell, afs_cell_trace_unuse_sbi);
532 put_net(as->net_ns);
533 kfree(as);
539 struct afs_super_info *as = AFS_FS_S(sb);
541 if (as->dyn_root)
547 if (as->volume)
548 rcu_assign_pointer(as->volume->sb, NULL);
550 if (as->volume)
551 afs_deactivate_volume(as->volume);
552 afs_destroy_sbi(as);
562 struct afs_super_info *as;
573 as = afs_alloc_sbi(fc);
574 if (!as)
576 fc->s_fs_info = as;
580 as->dyn_root ? afs_dynroot_test_super : afs_test_super,
600 trace_afs_get_tree(as->cell, as->volume);
754 struct afs_super_info *as = AFS_FS_S(dentry->d_sb);
762 if (as->dyn_root) {
769 op = afs_alloc_operation(NULL, as->volume);