summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/umapfs
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/umapfs
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/umapfs')
-rw-r--r--sys/miscfs/umapfs/umap_vfsops.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/miscfs/umapfs/umap_vfsops.c b/sys/miscfs/umapfs/umap_vfsops.c
index 20c0c4c..0281678 100644
--- a/sys/miscfs/umapfs/umap_vfsops.c
+++ b/sys/miscfs/umapfs/umap_vfsops.c
@@ -35,7 +35,7 @@
*
* @(#)umap_vfsops.c 8.8 (Berkeley) 5/14/95
*
- * $Id: umap_vfsops.c,v 1.15 1997/08/02 14:32:25 bde Exp $
+ * $Id: umap_vfsops.c,v 1.16 1997/08/16 19:15:21 wollman Exp $
*/
/*
@@ -53,6 +53,8 @@
#include <sys/malloc.h>
#include <miscfs/umapfs/umap.h>
+static MALLOC_DEFINE(M_UMAPFSMNT, "UMAP mount", "UMAP mount structure");
+
static int umapfs_fhtovp __P((struct mount *mp, struct fid *fidp,
struct sockaddr *nam, struct vnode **vpp,
int *exflagsp, struct ucred **credanonp));
@@ -138,7 +140,7 @@ umapfs_mount(mp, path, data, ndp, p)
#endif
amp = (struct umap_mount *) malloc(sizeof(struct umap_mount),
- M_UFSMNT, M_WAITOK); /* XXX */
+ M_UMAPFSMNT, M_WAITOK); /* XXX */
/*
* Save reference to underlying FS
@@ -190,7 +192,7 @@ umapfs_mount(mp, path, data, ndp, p)
*/
if (error) {
vrele(lowerrootvp);
- free(amp, M_UFSMNT); /* XXX */
+ free(amp, M_UMAPFSMNT); /* XXX */
return (error);
}
@@ -283,7 +285,7 @@ umapfs_unmount(mp, mntflags, p)
/*
* Finally, throw away the umap_mount structure
*/
- free(mp->mnt_data, M_UFSMNT); /* XXX */
+ free(mp->mnt_data, M_UMAPFSMNT); /* XXX */
mp->mnt_data = 0;
return (0);
}
OpenPOWER on IntegriCloud