diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2018-09-26 14:51:45 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2018-09-26 14:51:45 +0000 |
commit | 0245fd506fc80555f0b186a67e1b874d9e3a77cf (patch) | |
tree | 31a141429bfd9088307a180307d0f99842ee9a1e /sys/ufs/ffs/ffs_vfsops.c | |
parent | 97bedb4b77bfc2e29e930a3871c5dce37c03b69a (diff) |
Move the allocating and freeing of mount points into
dedicated functions.
OK deraadt@ mpi@
Diffstat (limited to 'sys/ufs/ffs/ffs_vfsops.c')
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 6c52beaa6f8..41532f35faf 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_vfsops.c,v 1.178 2018/07/11 17:44:57 kn Exp $ */ +/* $OpenBSD: ffs_vfsops.c,v 1.179 2018/09/26 14:51:44 visa Exp $ */ /* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */ /* @@ -177,9 +177,8 @@ ffs_mountroot(void) } if ((error = ffs_mountfs(rootvp, mp, p)) != 0) { - mp->mnt_vfc->vfc_refcount--; vfs_unbusy(mp); - free(mp, M_MOUNT, sizeof(*mp)); + vfs_mount_free(mp); vrele(swapdev_vp); vrele(rootvp); return (error); |