Allocate real malloc types for NFS, rather than using M_TEMP.
This commit is contained in:
parent
b8464bb9da
commit
c1de76e30b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: nfs.h,v 1.12 1996/12/02 22:55:39 thorpej Exp $ */
|
||||
/* $NetBSD: nfs.h,v 1.13 1996/12/10 10:07:22 mycroft Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1989, 1993, 1995
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
|
@ -91,19 +91,9 @@
|
|||
NFS_MAXDGRAMDATA : NFS_MAXDATA) : NFS_V2MAXDATA)
|
||||
|
||||
/*
|
||||
* sys/malloc.h needs M_NFSDIROFF, M_NFSRVDESC and M_NFSBIGFH added.
|
||||
* The VA_EXCLUSIVE flag should be added for va_vaflags and set for an
|
||||
* exclusive create.
|
||||
*/
|
||||
#ifndef M_NFSRVDESC
|
||||
#define M_NFSRVDESC M_TEMP
|
||||
#endif
|
||||
#ifndef M_NFSDIROFF
|
||||
#define M_NFSDIROFF M_TEMP
|
||||
#endif
|
||||
#ifndef M_NFSBIGFH
|
||||
#define M_NFSBIGFH M_TEMP
|
||||
#endif
|
||||
#ifndef VA_EXCLUSIVE
|
||||
#define VA_EXCLUSIVE 0
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: malloc.h,v 1.24 1996/08/27 20:01:51 cgd Exp $ */
|
||||
/* $NetBSD: malloc.h,v 1.25 1996/12/10 10:07:26 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1993
|
||||
|
@ -121,6 +121,9 @@
|
|||
#define M_IPQ 69 /* IP packet queue entry */
|
||||
#define M_AFS 70 /* Andrew File System */
|
||||
#define M_ADOSFSBITMAP 71 /* adosfs bitmap */
|
||||
#define M_NFSRVDESC 72 /* NFS server descriptor */
|
||||
#define M_NFSDIROFF 73 /* NFS directory cookies */
|
||||
#define M_NFSBIGFH 74 /* NFS big filehandle */
|
||||
#define M_TEMP 84 /* misc temporary data buffers */
|
||||
#define M_LAST 85 /* Must be last type + 1 */
|
||||
|
||||
|
@ -197,7 +200,10 @@
|
|||
"IP queue ent", /* 69 M_IPQ */ \
|
||||
"afs", /* 70 M_AFS */ \
|
||||
"adosfs bitmap", /* 71 M_ADOSFSBITMAP */ \
|
||||
NULL, NULL, NULL, NULL, \
|
||||
"NFS srvdesc", /* 72 M_NFSRVDESC */ \
|
||||
"NFS diroff", /* 73 M_NFSDIROFF */ \
|
||||
"NFS bigfh", /* 74 M_NFSBIGFH */ \
|
||||
NULL, \
|
||||
NULL, NULL, NULL, NULL, NULL, \
|
||||
NULL, NULL, NULL, \
|
||||
"temp", /* 84 M_TEMP */ \
|
||||
|
|
Loading…
Reference in New Issue