Lines Matching refs:as
157 struct afs_super_info *as = AFS_FS_S(root->d_sb); in afs_show_devname() local
158 struct afs_volume *volume = as->volume; in afs_show_devname()
159 struct afs_cell *cell = as->cell; in afs_show_devname()
163 if (as->dyn_root) { in afs_show_devname()
191 struct afs_super_info *as = AFS_FS_S(root->d_sb); in afs_show_options() local
194 if (as->dyn_root) in afs_show_options()
198 switch (as->flock_mode) { in afs_show_options()
420 struct afs_super_info *as = AFS_FS_S(sb); in afs_test_super() local
422 return (as->net_ns == fc->net_ns && in afs_test_super()
423 as->volume && in afs_test_super()
424 as->volume->vid == ctx->volume->vid && in afs_test_super()
425 as->cell == ctx->cell && in afs_test_super()
426 !as->dyn_root); in afs_test_super()
431 struct afs_super_info *as = AFS_FS_S(sb); in afs_dynroot_test_super() local
433 return (as->net_ns == fc->net_ns && in afs_dynroot_test_super()
434 as->dyn_root); in afs_dynroot_test_super()
447 struct afs_super_info *as = AFS_FS_S(sb); in afs_fill_super() local
459 if (!as->dyn_root) in afs_fill_super()
466 if (as->dyn_root) { in afs_fill_super()
469 sprintf(sb->s_id, "%llu", as->volume->vid); in afs_fill_super()
470 afs_activate_volume(as->volume); in afs_fill_super()
477 if (ctx->autocell || as->dyn_root) in afs_fill_super()
485 if (as->dyn_root) { in afs_fill_super()
492 rcu_assign_pointer(as->volume->sb, sb); in afs_fill_super()
506 struct afs_super_info *as; in afs_alloc_sbi() local
508 as = kzalloc(sizeof(struct afs_super_info), GFP_KERNEL); in afs_alloc_sbi()
509 if (as) { in afs_alloc_sbi()
510 as->net_ns = get_net(fc->net_ns); in afs_alloc_sbi()
511 as->flock_mode = ctx->flock_mode; in afs_alloc_sbi()
513 as->dyn_root = true; in afs_alloc_sbi()
515 as->cell = afs_use_cell(ctx->cell, afs_cell_trace_use_sbi); in afs_alloc_sbi()
516 as->volume = afs_get_volume(ctx->volume, in afs_alloc_sbi()
520 return as; in afs_alloc_sbi()
523 static void afs_destroy_sbi(struct afs_super_info *as) in afs_destroy_sbi() argument
525 if (as) { in afs_destroy_sbi()
526 struct afs_net *net = afs_net(as->net_ns); in afs_destroy_sbi()
527 afs_put_volume(net, as->volume, afs_volume_trace_put_destroy_sbi); in afs_destroy_sbi()
528 afs_unuse_cell(net, as->cell, afs_cell_trace_unuse_sbi); in afs_destroy_sbi()
529 put_net(as->net_ns); in afs_destroy_sbi()
530 kfree(as); in afs_destroy_sbi()
536 struct afs_super_info *as = AFS_FS_S(sb); in afs_kill_super() local
538 if (as->dyn_root) in afs_kill_super()
544 if (as->volume) in afs_kill_super()
545 rcu_assign_pointer(as->volume->sb, NULL); in afs_kill_super()
547 if (as->volume) in afs_kill_super()
548 afs_deactivate_volume(as->volume); in afs_kill_super()
549 afs_destroy_sbi(as); in afs_kill_super()
559 struct afs_super_info *as; in afs_get_tree() local
570 as = afs_alloc_sbi(fc); in afs_get_tree()
571 if (!as) in afs_get_tree()
573 fc->s_fs_info = as; in afs_get_tree()
577 as->dyn_root ? afs_dynroot_test_super : afs_test_super, in afs_get_tree()
597 trace_afs_get_tree(as->cell, as->volume); in afs_get_tree()
753 struct afs_super_info *as = AFS_FS_S(dentry->d_sb); in afs_statfs() local
761 if (as->dyn_root) { in afs_statfs()
768 op = afs_alloc_operation(NULL, as->volume); in afs_statfs()