Lines Matching refs:vswp

919 	struct vfssw *vswp;  in mod_infofs()  local
922 if ((vswp = vfs_getvfsswbyname(modl->fs_vfsdef->name)) == NULL) in mod_infofs()
925 *p0 = vswp - vfssw; in mod_infofs()
926 vfs_unrefvfssw(vswp); in mod_infofs()
939 struct vfssw *vswp; in mod_installfs() local
976 if ((vswp = vfs_getvfsswbyname(fsname)) == NULL) { in mod_installfs()
977 if ((vswp = allocate_vfssw(fsname)) == NULL) { in mod_installfs()
989 ASSERT(vswp != NULL); in mod_installfs()
991 fstype = vswp - vfssw; /* Pointer arithmetic to get the fstype */ in mod_installfs()
994 vswp->vsw_flag = modl->fs_vfsdef->flags & ~(VSW_STATS); in mod_installfs()
998 &vswp->vsw_optproto); in mod_installfs()
1000 vfs_copyopttbl(&vfs_mntopts, &vswp->vsw_optproto); in mod_installfs()
1007 vswp->vsw_flag |= VSW_CANREMOUNT; in mod_installfs()
1015 vswp->vsw_flag |= VSW_STATS; in mod_installfs()
1025 kmem_free(vswp->vsw_name, strlen(vswp->vsw_name)+1); in mod_installfs()
1026 vswp->vsw_name = ""; in mod_installfs()
1028 vswp->vsw_flag = 0; in mod_installfs()
1029 vswp->vsw_init = NULL; in mod_installfs()
1033 vsw_stats_enabled = vswp->vsw_flag & VSW_STATS; in mod_installfs()
1035 vfs_unrefvfssw(vswp); in mod_installfs()
1057 struct vfssw *vswp; in mod_removefs() local
1065 if ((vswp = vfs_getvfsswbyname(modl->fs_vfsdef->name)) == NULL) { in mod_removefs()
1073 if (vswp->vsw_count != 1) { in mod_removefs()
1074 vfs_unrefvfssw(vswp); in mod_removefs()
1083 if (vfs_opsinuse(&vswp->vsw_vfsops)) { in mod_removefs()
1084 vfs_unrefvfssw(vswp); in mod_removefs()
1089 vfs_freeopttbl(&vswp->vsw_optproto); in mod_removefs()
1090 vswp->vsw_optproto.mo_count = 0; in mod_removefs()
1092 vswp->vsw_flag = 0; in mod_removefs()
1093 vswp->vsw_init = NULL; in mod_removefs()
1094 vfs_unrefvfssw(vswp); in mod_removefs()