Lines Matching refs:as
149 struct afs_super_info *as = AFS_FS_S(root->d_sb); in afs_show_devname() local
150 struct afs_volume *volume = as->volume; in afs_show_devname()
151 struct afs_cell *cell = as->cell; in afs_show_devname()
155 if (as->dyn_root) { in afs_show_devname()
183 struct afs_super_info *as = AFS_FS_S(root->d_sb); in afs_show_options() local
185 if (as->dyn_root) in afs_show_options()
354 struct afs_super_info *as = AFS_FS_S(sb); in afs_test_super() local
356 return (as->net_ns == as1->net_ns && in afs_test_super()
357 as->volume && in afs_test_super()
358 as->volume->vid == as1->volume->vid && in afs_test_super()
359 !as->dyn_root); in afs_test_super()
365 struct afs_super_info *as = AFS_FS_S(sb); in afs_dynroot_test_super() local
367 return (as->net_ns == as1->net_ns && in afs_dynroot_test_super()
368 as->dyn_root); in afs_dynroot_test_super()
373 struct afs_super_info *as = data; in afs_set_super() local
375 sb->s_fs_info = as; in afs_set_super()
385 struct afs_super_info *as = AFS_FS_S(sb); in afs_fill_super() local
397 if (!as->dyn_root) in afs_fill_super()
405 if (as->dyn_root) { in afs_fill_super()
409 sprintf(sb->s_id, "%u", as->volume->vid); in afs_fill_super()
410 afs_activate_volume(as->volume); in afs_fill_super()
411 fid.vid = as->volume->vid; in afs_fill_super()
428 if (as->dyn_root) { in afs_fill_super()
447 struct afs_super_info *as; in afs_alloc_sbi() local
449 as = kzalloc(sizeof(struct afs_super_info), GFP_KERNEL); in afs_alloc_sbi()
450 if (as) { in afs_alloc_sbi()
451 as->net_ns = get_net(params->net_ns); in afs_alloc_sbi()
453 as->dyn_root = true; in afs_alloc_sbi()
455 as->cell = afs_get_cell(params->cell); in afs_alloc_sbi()
457 return as; in afs_alloc_sbi()
460 static void afs_destroy_sbi(struct afs_super_info *as) in afs_destroy_sbi() argument
462 if (as) { in afs_destroy_sbi()
463 afs_put_volume(as->cell, as->volume); in afs_destroy_sbi()
464 afs_put_cell(afs_net(as->net_ns), as->cell); in afs_destroy_sbi()
465 put_net(as->net_ns); in afs_destroy_sbi()
466 kfree(as); in afs_destroy_sbi()
472 struct afs_super_info *as = AFS_FS_S(sb); in afs_kill_super() local
473 struct afs_net *net = afs_net(as->net_ns); in afs_kill_super()
475 if (as->dyn_root) in afs_kill_super()
481 if (as->volume) in afs_kill_super()
482 afs_clear_callback_interests(net, as->volume->servers); in afs_kill_super()
484 if (as->volume) in afs_kill_super()
485 afs_deactivate_volume(as->volume); in afs_kill_super()
486 afs_destroy_sbi(as); in afs_kill_super()
499 struct afs_super_info *as; in afs_mount() local
536 as = afs_alloc_sbi(¶ms); in afs_mount()
537 if (!as) in afs_mount()
552 as->volume = candidate; in afs_mount()
557 as->dyn_root ? afs_dynroot_test_super : afs_test_super, in afs_mount()
558 afs_set_super, flags, as); in afs_mount()
570 as = NULL; in afs_mount()
575 afs_destroy_sbi(as); in afs_mount()
576 as = NULL; in afs_mount()
588 afs_destroy_sbi(as); in afs_mount()
681 struct afs_super_info *as = AFS_FS_S(dentry->d_sb); in afs_statfs() local
692 if (as->dyn_root) { in afs_statfs()