summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/fdesc
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/miscfs/fdesc
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/miscfs/fdesc')
-rw-r--r--sys/miscfs/fdesc/fdesc_vfsops.c8
1 files changed, 5 insertions, 3 deletions
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 <sys/malloc.h>
#include <miscfs/fdesc/fdesc.h>
+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);
OpenPOWER on IntegriCloud