Lines Matching full:as
158 struct afs_super_info *as = AFS_FS_S(root->d_sb); in afs_show_devname() local
159 struct afs_volume *volume = as->volume; in afs_show_devname()
160 struct afs_cell *cell = as->cell; in afs_show_devname()
164 if (as->dyn_root) { in afs_show_devname()
192 struct afs_super_info *as = AFS_FS_S(root->d_sb); in afs_show_options() local
195 if (as->dyn_root) in afs_show_options()
197 switch (as->flock_mode) { in afs_show_options()
423 struct afs_super_info *as = AFS_FS_S(sb); in afs_test_super() local
425 return (as->net_ns == fc->net_ns && in afs_test_super()
426 as->volume && in afs_test_super()
427 as->volume->vid == ctx->volume->vid && in afs_test_super()
428 as->cell == ctx->cell && in afs_test_super()
429 !as->dyn_root); in afs_test_super()
434 struct afs_super_info *as = AFS_FS_S(sb); in afs_dynroot_test_super() local
436 return (as->net_ns == fc->net_ns && in afs_dynroot_test_super()
437 as->dyn_root); in afs_dynroot_test_super()
450 struct afs_super_info *as = AFS_FS_S(sb); in afs_fill_super() local
462 if (!as->dyn_root) in afs_fill_super()
469 if (as->dyn_root) { in afs_fill_super()
472 sprintf(sb->s_id, "%llu", as->volume->vid); in afs_fill_super()
473 afs_activate_volume(as->volume); in afs_fill_super()
485 if (as->dyn_root) { in afs_fill_super()
489 rcu_assign_pointer(as->volume->sb, sb); in afs_fill_super()
503 struct afs_super_info *as; in afs_alloc_sbi() local
505 as = kzalloc(sizeof(struct afs_super_info), GFP_KERNEL); in afs_alloc_sbi()
506 if (as) { in afs_alloc_sbi()
507 as->net_ns = get_net(fc->net_ns); in afs_alloc_sbi()
508 as->flock_mode = ctx->flock_mode; in afs_alloc_sbi()
510 as->dyn_root = true; in afs_alloc_sbi()
512 as->cell = afs_use_cell(ctx->cell, afs_cell_trace_use_sbi); in afs_alloc_sbi()
513 as->volume = afs_get_volume(ctx->volume, in afs_alloc_sbi()
517 return as; in afs_alloc_sbi()
520 static void afs_destroy_sbi(struct afs_super_info *as) in afs_destroy_sbi() argument
522 if (as) { in afs_destroy_sbi()
523 afs_put_volume(as->volume, afs_volume_trace_put_destroy_sbi); in afs_destroy_sbi()
524 afs_unuse_cell(as->cell, afs_cell_trace_unuse_sbi); in afs_destroy_sbi()
525 put_net(as->net_ns); in afs_destroy_sbi()
526 kfree(as); in afs_destroy_sbi()
532 struct afs_super_info *as = AFS_FS_S(sb); in afs_kill_super() local
537 if (as->volume) in afs_kill_super()
538 rcu_assign_pointer(as->volume->sb, NULL); in afs_kill_super()
540 if (as->volume) in afs_kill_super()
541 afs_deactivate_volume(as->volume); in afs_kill_super()
542 afs_destroy_sbi(as); in afs_kill_super()
552 struct afs_super_info *as; in afs_get_tree() local
563 as = afs_alloc_sbi(fc); in afs_get_tree()
564 if (!as) in afs_get_tree()
566 fc->s_fs_info = as; in afs_get_tree()
570 as->dyn_root ? afs_dynroot_test_super : afs_test_super, in afs_get_tree()
590 trace_afs_get_tree(as->cell, as->volume); in afs_get_tree()
746 struct afs_super_info *as = AFS_FS_S(dentry->d_sb); in afs_statfs() local
754 if (as->dyn_root) { in afs_statfs()
761 op = afs_alloc_operation(NULL, as->volume); in afs_statfs()