From 36e7a51ea1dedf0fc860ff3106aee1db1ab3b1f5 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 12 Oct 1997 20:26:33 +0000 Subject: 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 --- sys/fs/portalfs/portal_vfsops.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sys/fs/portalfs/portal_vfsops.c') 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 #include +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); } -- cgit v1.1