diff options
Diffstat (limited to 'sys/msdosfs')
| -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 |
3 files changed, 12 insertions, 1 deletions
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 */ |
