summaryrefslogtreecommitdiff
path: root/sys/miscfs
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-02-24 22:32:47 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-02-24 22:32:47 +0000
commitf1a3285ed63083a5d7d7103171127ddc29826210 (patch)
tree4428866022cbdb3defe4315b3265875f739d5569 /sys/miscfs
parent805cfa0f4d2d7efac161ed2d95258737ba4e5482 (diff)
use M_MISCFSMNT instead of M_UFSMNT for mount data
ok art@
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/nullfs/null_vfsops.c8
-rw-r--r--sys/miscfs/portal/portal_vfsops.c6
-rw-r--r--sys/miscfs/procfs/procfs_vfsops.c6
-rw-r--r--sys/miscfs/umapfs/umap_vfsops.c8
-rw-r--r--sys/miscfs/union/union_vfsops.c8
5 files changed, 18 insertions, 18 deletions
diff --git a/sys/miscfs/nullfs/null_vfsops.c b/sys/miscfs/nullfs/null_vfsops.c
index 703c3559d89..a9f7d0f8ad0 100644
--- a/sys/miscfs/nullfs/null_vfsops.c
+++ b/sys/miscfs/nullfs/null_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: null_vfsops.c,v 1.13 2002/03/14 01:27:08 millert Exp $ */
+/* $OpenBSD: null_vfsops.c,v 1.14 2003/02/24 22:32:46 tedu Exp $ */
/* $NetBSD: null_vfsops.c,v 1.11 1996/05/10 22:50:56 jtk Exp $ */
/*
@@ -128,7 +128,7 @@ nullfs_mount(mp, path, data, ndp, p)
}
xmp = (struct null_mount *) malloc(sizeof(struct null_mount),
- M_UFSMNT, M_WAITOK); /* XXX */
+ M_MISCFSMNT, M_WAITOK);
/*
* Save reference to underlying FS
@@ -149,7 +149,7 @@ nullfs_mount(mp, path, data, ndp, p)
*/
if (error) {
vrele(lowerrootvp);
- free(xmp, M_UFSMNT); /* XXX */
+ free(xmp, M_MISCFSMNT);
return (error);
}
@@ -243,7 +243,7 @@ nullfs_unmount(mp, mntflags, p)
/*
* Finally, throw away the null_mount structure
*/
- free(mp->mnt_data, M_UFSMNT); /* XXX */
+ free(mp->mnt_data, M_MISCFSMNT);
mp->mnt_data = 0;
return 0;
}
diff --git a/sys/miscfs/portal/portal_vfsops.c b/sys/miscfs/portal/portal_vfsops.c
index 4c43fb9489a..80c949277db 100644
--- a/sys/miscfs/portal/portal_vfsops.c
+++ b/sys/miscfs/portal/portal_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: portal_vfsops.c,v 1.14 2002/08/23 22:21:44 art Exp $ */
+/* $OpenBSD: portal_vfsops.c,v 1.15 2003/02/24 22:32:46 tedu Exp $ */
/* $NetBSD: portal_vfsops.c,v 1.14 1996/02/09 22:40:41 christos Exp $ */
/*
@@ -119,7 +119,7 @@ portal_mount(mp, path, data, ndp, p)
M_TEMP, M_WAITOK);
fmp = (struct portalmount *) malloc(sizeof(struct portalmount),
- M_UFSMNT, M_WAITOK); /* XXX */
+ M_MISCFSMNT, M_WAITOK);
rvp->v_type = VDIR;
rvp->v_flag |= VROOT;
VTOPORTAL(rvp)->pt_arg = 0;
@@ -203,7 +203,7 @@ portal_unmount(mp, mntflags, p)
/*
* Finally, throw away the portalmount structure
*/
- free(mp->mnt_data, M_UFSMNT); /* XXX */
+ free(mp->mnt_data, M_MISCFSMNT);
mp->mnt_data = 0;
return (0);
}
diff --git a/sys/miscfs/procfs/procfs_vfsops.c b/sys/miscfs/procfs/procfs_vfsops.c
index 3db5f2589ca..5241565868e 100644
--- a/sys/miscfs/procfs/procfs_vfsops.c
+++ b/sys/miscfs/procfs/procfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procfs_vfsops.c,v 1.18 2003/01/31 20:41:29 art Exp $ */
+/* $OpenBSD: procfs_vfsops.c,v 1.19 2003/02/24 22:32:46 tedu Exp $ */
/* $NetBSD: procfs_vfsops.c,v 1.25 1996/02/09 22:40:53 christos Exp $ */
/*
@@ -104,7 +104,7 @@ procfs_mount(mp, path, data, ndp, p)
mp->mnt_flag |= MNT_LOCAL;
pmnt = (struct procfsmount *) malloc(sizeof(struct procfsmount),
- M_UFSMNT, M_WAITOK); /* XXX need new malloc type */
+ M_MISCFSMNT, M_WAITOK);
mp->mnt_data = (qaddr_t)pmnt;
vfs_getnewfsid(mp);
@@ -145,7 +145,7 @@ procfs_unmount(mp, mntflags, p)
if ((error = vflush(mp, 0, flags)) != 0)
return (error);
- free(VFSTOPROC(mp), M_UFSMNT);
+ free(VFSTOPROC(mp), M_MISCFSMNT);
mp->mnt_data = 0;
return (0);
diff --git a/sys/miscfs/umapfs/umap_vfsops.c b/sys/miscfs/umapfs/umap_vfsops.c
index 88bc06db3bc..1b289d5b8eb 100644
--- a/sys/miscfs/umapfs/umap_vfsops.c
+++ b/sys/miscfs/umapfs/umap_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: umap_vfsops.c,v 1.18 2002/03/14 01:27:08 millert Exp $ */
+/* $OpenBSD: umap_vfsops.c,v 1.19 2003/02/24 22:32:46 tedu Exp $ */
/* $NetBSD: umap_vfsops.c,v 1.9 1996/02/09 22:41:05 christos Exp $ */
/*
@@ -141,7 +141,7 @@ umapfs_mount(mp, path, data, ndp, p)
#endif
amp = (struct umap_mount *) malloc(sizeof(struct umap_mount),
- M_UFSMNT, M_WAITOK); /* XXX */
+ M_MISCFSMNT, M_WAITOK);
/*
* Save reference to underlying FS
@@ -198,7 +198,7 @@ umapfs_mount(mp, path, data, ndp, p)
*/
if (error) {
vrele(lowerrootvp);
- free(amp, M_UFSMNT); /* XXX */
+ free(amp, M_MISCFSMNT);
return (error);
}
@@ -291,7 +291,7 @@ umapfs_unmount(mp, mntflags, p)
/*
* Finally, throw away the umap_mount structure
*/
- free(mp->mnt_data, M_UFSMNT); /* XXX */
+ free(mp->mnt_data, M_MISCFSMNT);
mp->mnt_data = 0;
return (0);
}
diff --git a/sys/miscfs/union/union_vfsops.c b/sys/miscfs/union/union_vfsops.c
index 8eebf602fe4..f7cfe1789cf 100644
--- a/sys/miscfs/union/union_vfsops.c
+++ b/sys/miscfs/union/union_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: union_vfsops.c,v 1.13 2002/03/14 01:27:08 millert Exp $ */
+/* $OpenBSD: union_vfsops.c,v 1.14 2003/02/24 22:32:46 tedu Exp $ */
/* $NetBSD: union_vfsops.c,v 1.10 1995/06/18 14:47:47 cgd Exp $ */
/*
@@ -133,7 +133,7 @@ union_mount(mp, path, data, ndp, p)
}
um = (struct union_mount *) malloc(sizeof(struct union_mount),
- M_UFSMNT, M_WAITOK); /* XXX */
+ M_MISCFSMNT, M_WAITOK);
/*
* Keep a held reference to the target vnodes.
@@ -247,7 +247,7 @@ union_mount(mp, path, data, ndp, p)
bad:
if (um)
- free(um, M_UFSMNT);
+ free(um, M_MISCFSMNT);
if (cred)
crfree(cred);
if (upperrootvp)
@@ -361,7 +361,7 @@ union_unmount(mp, mntflags, p)
/*
* Finally, throw away the union_mount structure
*/
- free(mp->mnt_data, M_UFSMNT); /* XXX */
+ free(mp->mnt_data, M_MISCFSMNT);
mp->mnt_data = 0;
return (0);
}