Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/vfs_init.c
Show First 20 Lines • Show All 541 Lines • ▼ Show 20 Lines | if (vfsp->vfc_refcount != 0) { | ||||
vfsconf_unlock(); | vfsconf_unlock(); | ||||
return (EBUSY); | return (EBUSY); | ||||
} | } | ||||
error = 0; | error = 0; | ||||
if ((vfc->vfc_flags & VFCF_SBDRY) != 0) { | if ((vfc->vfc_flags & VFCF_SBDRY) != 0) { | ||||
if (vfc->vfc_vfsops_sd->vfs_uninit != NULL) | if (vfc->vfc_vfsops_sd->vfs_uninit != NULL) | ||||
error = vfc->vfc_vfsops_sd->vfs_uninit(vfsp); | error = vfc->vfc_vfsops_sd->vfs_uninit(vfsp); | ||||
} else { | } else { | ||||
if (vfc->vfc_vfsops->vfs_uninit != NULL) { | if (vfc->vfc_vfsops->vfs_uninit != NULL) | ||||
error = vfc->vfc_vfsops->vfs_uninit(vfsp); | error = vfc->vfc_vfsops->vfs_uninit(vfsp); | ||||
} | } | ||||
if (error != 0) { | if (error != 0) { | ||||
vfsconf_unlock(); | vfsconf_unlock(); | ||||
return (error); | return (error); | ||||
} | |||||
} | } | ||||
TAILQ_REMOVE(&vfsconf, vfsp, vfc_list); | TAILQ_REMOVE(&vfsconf, vfsp, vfc_list); | ||||
maxtypenum = VFS_GENERIC; | maxtypenum = VFS_GENERIC; | ||||
TAILQ_FOREACH(vfsp, &vfsconf, vfc_list) | TAILQ_FOREACH(vfsp, &vfsconf, vfc_list) | ||||
if (maxtypenum < vfsp->vfc_typenum) | if (maxtypenum < vfsp->vfc_typenum) | ||||
maxtypenum = vfsp->vfc_typenum; | maxtypenum = vfsp->vfc_typenum; | ||||
maxvfsconf = maxtypenum + 1; | maxvfsconf = maxtypenum + 1; | ||||
vfsconf_unlock(); | vfsconf_unlock(); | ||||
Show All 31 Lines |