diff options
| -rw-r--r-- | sys/isofs/cd9660/cd9660_node.c | 10 | ||||
| -rw-r--r-- | sys/isofs/cd9660/cd9660_vfsops.c | 2 | ||||
| -rw-r--r-- | sys/isofs/cd9660/iso.h | 1 | ||||
| -rw-r--r-- | sys/msdosfs/msdosfs_denode.c | 10 | ||||
| -rw-r--r-- | sys/msdosfs/msdosfs_vfsops.c | 2 | ||||
| -rw-r--r-- | sys/msdosfs/msdosfsmount.h | 1 |
6 files changed, 24 insertions, 2 deletions
diff --git a/sys/isofs/cd9660/cd9660_node.c b/sys/isofs/cd9660/cd9660_node.c index d7093fe3fd7f..06b4cc4d44d9 100644 --- a/sys/isofs/cd9660/cd9660_node.c +++ b/sys/isofs/cd9660/cd9660_node.c @@ -78,6 +78,16 @@ cd9660_init(vfsp) return (0); } +int +cd9660_uninit(vfsp) + struct vfsconf *vfsp; +{ + + if (isohashtbl != NULL) + free(isohashtbl, M_ISOFSMNT); + return (0); +} + /* * Use the device/inum pair to find the incore inode, and return a pointer diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c index 955cc2f4019d..34b42df11da7 100644 --- a/sys/isofs/cd9660/cd9660_vfsops.c +++ b/sys/isofs/cd9660/cd9660_vfsops.c @@ -88,7 +88,7 @@ static struct vfsops cd9660_vfsops = { cd9660_checkexp, cd9660_vptofh, cd9660_init, - vfs_stduninit, + cd9660_uninit, vfs_stdextattrctl, }; VFS_SET(cd9660_vfsops, cd9660, VFCF_READONLY); diff --git a/sys/isofs/cd9660/iso.h b/sys/isofs/cd9660/iso.h index f9a4abbc6008..2da3d82d1476 100644 --- a/sys/isofs/cd9660/iso.h +++ b/sys/isofs/cd9660/iso.h @@ -258,6 +258,7 @@ struct iso_mnt { int cd9660_vget_internal __P((struct mount *, ino_t, struct vnode **, int, struct iso_directory_record *)); int cd9660_init __P((struct vfsconf *)); +int cd9660_uninit __P((struct vfsconf *)); #define cd9660_sysctl ((int (*) __P((int *, u_int, void *, size_t *, void *, \ size_t, struct proc *)))eopnotsupp) diff --git a/sys/msdosfs/msdosfs_denode.c b/sys/msdosfs/msdosfs_denode.c index ea825397a4c7..ca18230fe555 100644 --- a/sys/msdosfs/msdosfs_denode.c +++ b/sys/msdosfs/msdosfs_denode.c @@ -109,6 +109,16 @@ msdosfs_init(vfsp) return (0); } +int +msdosfs_uninit(vfsp) + struct vfsconf *vfsp; +{ + + if (dehashtbl) + free(dehashtbl, M_MSDOSFSMNT); + return (0); +} + static struct denode * msdosfs_hashget(dev, dirclust, diroff) dev_t dev; diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c index d5754f271454..c3870b640203 100644 --- a/sys/msdosfs/msdosfs_vfsops.c +++ b/sys/msdosfs/msdosfs_vfsops.c @@ -981,7 +981,7 @@ static struct vfsops msdosfs_vfsops = { msdosfs_checkexp, msdosfs_vptofh, msdosfs_init, - vfs_stduninit, + msdosfs_uninit, vfs_stdextattrctl, }; diff --git a/sys/msdosfs/msdosfsmount.h b/sys/msdosfs/msdosfsmount.h index 59cc7c9eae48..adcfad041f26 100644 --- a/sys/msdosfs/msdosfsmount.h +++ b/sys/msdosfs/msdosfsmount.h @@ -198,6 +198,7 @@ struct msdosfsmount { (1024 << ((pmp)->pm_BlkPerSec >> 2)) int msdosfs_init __P((struct vfsconf *vfsp)); +int msdosfs_uninit __P((struct vfsconf *vfsp)); int msdosfs_mountroot __P((void)); #endif /* _KERNEL */ |
