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/miscfs/fdesc/fdesc_vfsops.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/miscfs/fdesc') diff --git a/sys/miscfs/fdesc/fdesc_vfsops.c b/sys/miscfs/fdesc/fdesc_vfsops.c index e80c69d..b57b236 100644 --- a/sys/miscfs/fdesc/fdesc_vfsops.c +++ b/sys/miscfs/fdesc/fdesc_vfsops.c @@ -35,7 +35,7 @@ * * @(#)fdesc_vfsops.c 8.4 (Berkeley) 1/21/94 * - * $Id: fdesc_vfsops.c,v 1.11 1997/08/02 14:31:59 bde Exp $ + * $Id: fdesc_vfsops.c,v 1.12 1997/08/16 19:15:12 wollman Exp $ */ /* @@ -53,6 +53,8 @@ #include #include +static MALLOC_DEFINE(M_FDESCMNT, "FDESC mount", "FDESC mount structure"); + static int fdesc_fhtovp __P((struct mount *mp, struct fid *fhp, struct mbuf *nam, struct vnode **vpp, int *exflagsp, struct ucred **credanonp)); @@ -98,7 +100,7 @@ fdesc_mount(mp, path, data, ndp, p) return (error); MALLOC(fmp, struct fdescmount *, sizeof(struct fdescmount), - M_UFSMNT, M_WAITOK); /* XXX */ + M_FDESCMNT, M_WAITOK); /* XXX */ rvp->v_type = VDIR; rvp->v_flag |= VROOT; fmp->f_root = rvp; @@ -158,7 +160,7 @@ fdesc_unmount(mp, mntflags, p) /* * Finally, throw away the fdescmount structure */ - free(mp->mnt_data, M_UFSMNT); /* XXX */ + free(mp->mnt_data, M_FDESCMNT); /* XXX */ mp->mnt_data = 0; return (0); -- cgit v1.1