aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/portalfs
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1997-10-12 20:26:33 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1997-10-12 20:26:33 +0000
commita1c995b626fc56226f7c279f087b50769ff8df18 (patch)
tree26917801933240b41539e26bd8cb5dc27d8597a1 /sys/fs/portalfs
parent175dffc0f66eae582032914b7ecddc666edd4e83 (diff)
downloadsrc-a1c995b626fc56226f7c279f087b50769ff8df18.tar.gz
src-a1c995b626fc56226f7c279f087b50769ff8df18.zip
Last major round (Unless Bruce thinks of somthing :-) of malloc changes.
Distribute all but the most fundamental malloc types. This time I also remembered the trick to making things static: Put "static" in front of them. A couple of finer points by: bde
Notes
Notes: svn path=/head/; revision=30354
Diffstat (limited to 'sys/fs/portalfs')
-rw-r--r--sys/fs/portalfs/portal_vfsops.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/fs/portalfs/portal_vfsops.c b/sys/fs/portalfs/portal_vfsops.c
index c70e73e0a581..15e81b61c68a 100644
--- a/sys/fs/portalfs/portal_vfsops.c
+++ b/sys/fs/portalfs/portal_vfsops.c
@@ -35,7 +35,7 @@
*
* @(#)portal_vfsops.c 8.11 (Berkeley) 5/14/95
*
- * $Id: portal_vfsops.c,v 1.16 1997/08/02 14:32:07 bde Exp $
+ * $Id: portal_vfsops.c,v 1.17 1997/08/16 19:15:17 wollman Exp $
*/
/*
@@ -57,6 +57,8 @@
#include <sys/domain.h>
#include <miscfs/portal/portal.h>
+static MALLOC_DEFINE(M_PORTALFSMNT, "PORTAL mount", "PORTAL mount structure");
+
static int portal_init __P((struct vfsconf *));
static int portal_mount __P((struct mount *mp, char *path, caddr_t data,
struct nameidata *ndp, struct proc *p));
@@ -116,11 +118,11 @@ portal_mount(mp, path, data, ndp, p)
M_TEMP, M_WAITOK);
MALLOC(fmp, struct portalmount *, sizeof(struct portalmount),
- M_UFSMNT, M_WAITOK); /* XXX */
+ M_PORTALFSMNT, M_WAITOK); /* XXX */
error = getnewvnode(VT_PORTAL, mp, portal_vnodeop_p, &rvp); /* XXX */
if (error) {
- FREE(fmp, M_UFSMNT);
+ FREE(fmp, M_PORTALFSMNT);
FREE(pn, M_TEMP);
return (error);
}
@@ -213,7 +215,7 @@ portal_unmount(mp, mntflags, p)
/*
* Finally, throw away the portalmount structure
*/
- free(mp->mnt_data, M_UFSMNT); /* XXX */
+ free(mp->mnt_data, M_PORTALFSMNT); /* XXX */
mp->mnt_data = 0;
return (0);
}