From 91016c92d60f1911adc25c941634131e954058e3 Mon Sep 17 00:00:00 2001 From: cgd Date: Mon, 7 Jun 1993 18:12:52 +0000 Subject: [PATCH] give isofs mount structures their own malloc type --- sys/isofs/isofs_vfsops.c | 8 ++++---- sys/sys/malloc.h | 8 +++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/sys/isofs/isofs_vfsops.c b/sys/isofs/isofs_vfsops.c index 9163efa2b692..87159b55a742 100644 --- a/sys/isofs/isofs_vfsops.c +++ b/sys/isofs/isofs_vfsops.c @@ -1,5 +1,5 @@ /* - * $Id: isofs_vfsops.c,v 1.3 1993/05/20 03:30:54 cgd Exp $ + * $Id: isofs_vfsops.c,v 1.4 1993/06/07 18:12:52 cgd Exp $ */ #include "param.h" @@ -269,7 +269,7 @@ iso_mountfs(devvp, mp, p) rootp = (struct iso_directory_record *)pri->root_directory_record; - isomp = (struct iso_mnt *)malloc(sizeof *isomp,M_UFSMNT,M_WAITOK); + isomp = (struct iso_mnt *)malloc(sizeof *isomp,M_ISOFSMNT,M_WAITOK); isomp->logical_block_size = logical_block_size; isomp->volume_space_size = isonum_733 (pri->volume_space_size); bcopy (rootp, isomp->root, sizeof isomp->root); @@ -307,7 +307,7 @@ out: if (needclose) (void)VOP_CLOSE(devvp, ronly ? FREAD : FREAD|FWRITE, NOCRED, p); if (isomp) { - free((caddr_t)isomp, M_UFSMNT); + free((caddr_t)isomp, M_ISOFSMNT); mp->mnt_data = (qaddr_t)0; } return (error); @@ -355,7 +355,7 @@ isofs_unmount(mp, mntflags, p) error = VOP_CLOSE(isomp->im_devvp, ronly ? FREAD : FREAD|FWRITE, NOCRED, p); vrele(isomp->im_devvp); - free((caddr_t)isomp, M_UFSMNT); + free((caddr_t)isomp, M_ISOFSMNT); mp->mnt_data = (qaddr_t)0; mp->mnt_flag &= ~MNT_LOCAL; return (error); diff --git a/sys/sys/malloc.h b/sys/sys/malloc.h index eb1c7c2af506..7a1eea60e7d7 100644 --- a/sys/sys/malloc.h +++ b/sys/sys/malloc.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)malloc.h 7.25 (Berkeley) 5/15/91 - * $Id: malloc.h,v 1.9 1993/06/07 04:56:47 cgd Exp $ + * $Id: malloc.h,v 1.10 1993/06/07 18:13:14 cgd Exp $ */ #ifndef _SYS_MALLOC_H_ @@ -96,7 +96,8 @@ #define M_TTYS 45 /* allocated tty structures */ #define M_EXEC 46 /* argument lists & other mem used by exec */ #define M_MISCFSMNT 47 /* miscfs mount structures */ -#define M_TEMP 48 /* misc temporary data buffers */ +#define M_ISOFSMNT 48 /* isofs mount structures */ +#define M_TEMP 49 /* misc temporary data buffers */ #define M_LAST M_TEMP #define INITKMEMNAMES { \ @@ -148,7 +149,8 @@ "ttys", /* 45 M_TTYS */ \ "exec", /* 46 M_EXEC */ \ "miscfs mount", /* 47 M_MISCFSMNT */ \ - "temp", /* 48 M_TEMP */ \ + "isofs mount", /* 48 M_ISOFSMNT */ \ + "temp", /* 49 M_TEMP */ \ } struct kmemstats {