summaryrefslogtreecommitdiffstats
path: root/sys/fs/portalfs/portal_vfsops.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-10-12 20:26:33 +0000
committerphk <phk@FreeBSD.org>1997-10-12 20:26:33 +0000
commit36e7a51ea1dedf0fc860ff3106aee1db1ab3b1f5 (patch)
treee21c1d8330cbd5fba838afec549f8e4f0f66e451 /sys/fs/portalfs/portal_vfsops.c
parent8ae70d2227594ff4a283453ca3cc3031eb78c14b (diff)
downloadFreeBSD-src-36e7a51ea1dedf0fc860ff3106aee1db1ab3b1f5.zip
FreeBSD-src-36e7a51ea1dedf0fc860ff3106aee1db1ab3b1f5.tar.gz
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
Diffstat (limited to 'sys/fs/portalfs/portal_vfsops.c')
-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 c70e73e..15e81b6 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);
}
OpenPOWER on IntegriCloud