Lines Matching refs: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()
199 switch (as->flock_mode) { in afs_show_options()
421 struct afs_super_info *as = AFS_FS_S(sb); in afs_test_super() local
423 return (as->net_ns == fc->net_ns && in afs_test_super()
424 as->volume && in afs_test_super()
425 as->volume->vid == ctx->volume->vid && in afs_test_super()
426 as->cell == ctx->cell && in afs_test_super()
427 !as->dyn_root); in afs_test_super()
432 struct afs_super_info *as = AFS_FS_S(sb); in afs_dynroot_test_super() local
434 return (as->net_ns == fc->net_ns && in afs_dynroot_test_super()
435 as->dyn_root); in afs_dynroot_test_super()
448 struct afs_super_info *as = AFS_FS_S(sb); in afs_fill_super() local
460 if (!as->dyn_root) in afs_fill_super()
467 if (as->dyn_root) { in afs_fill_super()
470 sprintf(sb->s_id, "%llu", as->volume->vid); in afs_fill_super()
471 afs_activate_volume(as->volume); in afs_fill_super()
478 if (ctx->autocell || as->dyn_root) in afs_fill_super()
486 if (as->dyn_root) { in afs_fill_super()
493 rcu_assign_pointer(as->volume->sb, sb); in afs_fill_super()
507 struct afs_super_info *as; in afs_alloc_sbi() local
509 as = kzalloc(sizeof(struct afs_super_info), GFP_KERNEL); in afs_alloc_sbi()
510 if (as) { in afs_alloc_sbi()
511 as->net_ns = get_net(fc->net_ns); in afs_alloc_sbi()
512 as->flock_mode = ctx->flock_mode; in afs_alloc_sbi()
514 as->dyn_root = true; in afs_alloc_sbi()
516 as->cell = afs_use_cell(ctx->cell, afs_cell_trace_use_sbi); in afs_alloc_sbi()
517 as->volume = afs_get_volume(ctx->volume, in afs_alloc_sbi()
521 return as; in afs_alloc_sbi()
524 static void afs_destroy_sbi(struct afs_super_info *as) in afs_destroy_sbi() argument
526 if (as) { in afs_destroy_sbi()
527 struct afs_net *net = afs_net(as->net_ns); in afs_destroy_sbi()
528 afs_put_volume(net, as->volume, afs_volume_trace_put_destroy_sbi); in afs_destroy_sbi()
529 afs_unuse_cell(net, as->cell, afs_cell_trace_unuse_sbi); in afs_destroy_sbi()
530 put_net(as->net_ns); in afs_destroy_sbi()
531 kfree(as); in afs_destroy_sbi()
537 struct afs_super_info *as = AFS_FS_S(sb); in afs_kill_super() local
539 if (as->dyn_root) in afs_kill_super()
545 if (as->volume) in afs_kill_super()
546 rcu_assign_pointer(as->volume->sb, NULL); in afs_kill_super()
548 if (as->volume) in afs_kill_super()
549 afs_deactivate_volume(as->volume); in afs_kill_super()
550 afs_destroy_sbi(as); in afs_kill_super()
560 struct afs_super_info *as; in afs_get_tree() local
571 as = afs_alloc_sbi(fc); in afs_get_tree()
572 if (!as) in afs_get_tree()
574 fc->s_fs_info = as; in afs_get_tree()
578 as->dyn_root ? afs_dynroot_test_super : afs_test_super, in afs_get_tree()
598 trace_afs_get_tree(as->cell, as->volume); in afs_get_tree()
752 struct afs_super_info *as = AFS_FS_S(dentry->d_sb); in afs_statfs() local
760 if (as->dyn_root) { in afs_statfs()
767 op = afs_alloc_operation(NULL, as->volume); in afs_statfs()