give isofs mount structures their own malloc type
This commit is contained in:
parent
032eb3553c
commit
91016c92d6
|
@ -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);
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue