Lines Matching refs:as
157 struct afs_super_info *as = AFS_FS_S(root->d_sb);
158 struct afs_volume *volume = as->volume;
159 struct afs_cell *cell = as->cell;
163 if (as->dyn_root) {
191 struct afs_super_info *as = AFS_FS_S(root->d_sb);
194 if (as->dyn_root)
198 switch (as->flock_mode) {
422 struct afs_super_info *as = AFS_FS_S(sb);
424 return (as->net_ns == fc->net_ns &&
425 as->volume &&
426 as->volume->vid == ctx->volume->vid &&
427 as->cell == ctx->cell &&
428 !as->dyn_root);
433 struct afs_super_info *as = AFS_FS_S(sb);
435 return (as->net_ns == fc->net_ns &&
436 as->dyn_root);
449 struct afs_super_info *as = AFS_FS_S(sb);
461 if (!as->dyn_root)
468 if (as->dyn_root) {
471 sprintf(sb->s_id, "%llu", as->volume->vid);
472 afs_activate_volume(as->volume);
479 if (ctx->autocell || as->dyn_root)
487 if (as->dyn_root) {
494 rcu_assign_pointer(as->volume->sb, sb);
508 struct afs_super_info *as;
510 as = kzalloc(sizeof(struct afs_super_info), GFP_KERNEL);
511 if (as) {
512 as->net_ns = get_net(fc->net_ns);
513 as->flock_mode = ctx->flock_mode;
515 as->dyn_root = true;
517 as->cell = afs_use_cell(ctx->cell, afs_cell_trace_use_sbi);
518 as->volume = afs_get_volume(ctx->volume,
522 return as;
525 static void afs_destroy_sbi(struct afs_super_info *as)
527 if (as) {
528 struct afs_net *net = afs_net(as->net_ns);
529 afs_put_volume(net, as->volume, afs_volume_trace_put_destroy_sbi);
530 afs_unuse_cell(net, as->cell, afs_cell_trace_unuse_sbi);
531 put_net(as->net_ns);
532 kfree(as);
538 struct afs_super_info *as = AFS_FS_S(sb);
540 if (as->dyn_root)
546 if (as->volume)
547 rcu_assign_pointer(as->volume->sb, NULL);
549 if (as->volume)
550 afs_deactivate_volume(as->volume);
551 afs_destroy_sbi(as);
561 struct afs_super_info *as;
572 as = afs_alloc_sbi(fc);
573 if (!as)
575 fc->s_fs_info = as;
579 as->dyn_root ? afs_dynroot_test_super : afs_test_super,
599 trace_afs_get_tree(as->cell, as->volume);
753 struct afs_super_info *as = AFS_FS_S(dentry->d_sb);
761 if (as->dyn_root) {
768 op = afs_alloc_operation(NULL, as->volume);