Lines Matching refs:vswp

922 	struct vfssw *vswp;  in mod_infofs()  local
925 if ((vswp = vfs_getvfsswbyname(modl->fs_vfsdef->name)) == NULL) in mod_infofs()
928 *p0 = vswp - vfssw; in mod_infofs()
929 vfs_unrefvfssw(vswp); in mod_infofs()
942 struct vfssw *vswp; in mod_installfs() local
979 if ((vswp = vfs_getvfsswbyname(fsname)) == NULL) { in mod_installfs()
980 if ((vswp = allocate_vfssw(fsname)) == NULL) { in mod_installfs()
992 ASSERT(vswp != NULL); in mod_installfs()
994 fstype = vswp - vfssw; /* Pointer arithmetic to get the fstype */ in mod_installfs()
997 vswp->vsw_flag = modl->fs_vfsdef->flags & ~(VSW_STATS); in mod_installfs()
1001 &vswp->vsw_optproto); in mod_installfs()
1003 vfs_copyopttbl(&vfs_mntopts, &vswp->vsw_optproto); in mod_installfs()
1010 vswp->vsw_flag |= VSW_CANREMOUNT; in mod_installfs()
1018 vswp->vsw_flag |= VSW_STATS; in mod_installfs()
1028 kmem_free(vswp->vsw_name, strlen(vswp->vsw_name)+1); in mod_installfs()
1029 vswp->vsw_name = ""; in mod_installfs()
1031 vswp->vsw_flag = 0; in mod_installfs()
1032 vswp->vsw_init = NULL; in mod_installfs()
1036 vsw_stats_enabled = vswp->vsw_flag & VSW_STATS; in mod_installfs()
1038 vfs_unrefvfssw(vswp); in mod_installfs()
1060 struct vfssw *vswp; in mod_removefs() local
1068 if ((vswp = vfs_getvfsswbyname(modl->fs_vfsdef->name)) == NULL) { in mod_removefs()
1076 if (vswp->vsw_count != 1) { in mod_removefs()
1077 vfs_unrefvfssw(vswp); in mod_removefs()
1086 if (vfs_opsinuse(&vswp->vsw_vfsops)) { in mod_removefs()
1087 vfs_unrefvfssw(vswp); in mod_removefs()
1092 vfs_freeopttbl(&vswp->vsw_optproto); in mod_removefs()
1093 vswp->vsw_optproto.mo_count = 0; in mod_removefs()
1095 vswp->vsw_flag = 0; in mod_removefs()
1096 vswp->vsw_init = NULL; in mod_removefs()
1097 vfs_unrefvfssw(vswp); in mod_removefs()