Lines Matching refs:as
163 struct afs_super_info *as = AFS_FS_S(root->d_sb); in afs_show_devname() local
164 struct afs_volume *volume = as->volume; in afs_show_devname()
165 struct afs_cell *cell = as->cell; in afs_show_devname()
169 if (as->dyn_root) { in afs_show_devname()
197 struct afs_super_info *as = AFS_FS_S(root->d_sb); in afs_show_options() local
200 if (as->dyn_root) in afs_show_options()
204 switch (as->flock_mode) { in afs_show_options()
402 struct afs_super_info *as = AFS_FS_S(sb); in afs_test_super() local
404 return (as->net_ns == fc->net_ns && in afs_test_super()
405 as->volume && in afs_test_super()
406 as->volume->vid == ctx->volume->vid && in afs_test_super()
407 !as->dyn_root); in afs_test_super()
412 struct afs_super_info *as = AFS_FS_S(sb); in afs_dynroot_test_super() local
414 return (as->net_ns == fc->net_ns && in afs_dynroot_test_super()
415 as->dyn_root); in afs_dynroot_test_super()
428 struct afs_super_info *as = AFS_FS_S(sb); in afs_fill_super() local
441 if (!as->dyn_root) in afs_fill_super()
449 if (as->dyn_root) { in afs_fill_super()
453 sprintf(sb->s_id, "%llu", as->volume->vid); in afs_fill_super()
454 afs_activate_volume(as->volume); in afs_fill_super()
455 iget_data.fid.vid = as->volume->vid; in afs_fill_super()
459 iget_data.cb_v_break = as->volume->cb_v_break; in afs_fill_super()
467 if (ctx->autocell || as->dyn_root) in afs_fill_super()
475 if (as->dyn_root) { in afs_fill_super()
495 struct afs_super_info *as; in afs_alloc_sbi() local
497 as = kzalloc(sizeof(struct afs_super_info), GFP_KERNEL); in afs_alloc_sbi()
498 if (as) { in afs_alloc_sbi()
499 as->net_ns = get_net(fc->net_ns); in afs_alloc_sbi()
500 as->flock_mode = ctx->flock_mode; in afs_alloc_sbi()
502 as->dyn_root = true; in afs_alloc_sbi()
504 as->cell = afs_get_cell(ctx->cell); in afs_alloc_sbi()
505 as->volume = __afs_get_volume(ctx->volume); in afs_alloc_sbi()
508 return as; in afs_alloc_sbi()
511 static void afs_destroy_sbi(struct afs_super_info *as) in afs_destroy_sbi() argument
513 if (as) { in afs_destroy_sbi()
514 afs_put_volume(as->cell, as->volume); in afs_destroy_sbi()
515 afs_put_cell(afs_net(as->net_ns), as->cell); in afs_destroy_sbi()
516 put_net(as->net_ns); in afs_destroy_sbi()
517 kfree(as); in afs_destroy_sbi()
523 struct afs_super_info *as = AFS_FS_S(sb); in afs_kill_super() local
524 struct afs_net *net = afs_net(as->net_ns); in afs_kill_super()
526 if (as->dyn_root) in afs_kill_super()
532 if (as->volume) in afs_kill_super()
533 afs_clear_callback_interests(net, as->volume->servers); in afs_kill_super()
535 if (as->volume) in afs_kill_super()
536 afs_deactivate_volume(as->volume); in afs_kill_super()
537 afs_destroy_sbi(as); in afs_kill_super()
547 struct afs_super_info *as; in afs_get_tree() local
558 as = afs_alloc_sbi(fc); in afs_get_tree()
559 if (!as) in afs_get_tree()
561 fc->s_fs_info = as; in afs_get_tree()
565 as->dyn_root ? afs_dynroot_test_super : afs_test_super, in afs_get_tree()
585 trace_afs_get_tree(as->cell, as->volume); in afs_get_tree()
723 struct afs_super_info *as = AFS_FS_S(dentry->d_sb); in afs_statfs() local
734 if (as->dyn_root) { in afs_statfs()