diff options
author | phk <phk@FreeBSD.org> | 1997-10-11 18:31:40 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1997-10-11 18:31:40 +0000 |
commit | 645e7b2ab6676a2a3a05a59a053929d3b7732b4d (patch) | |
tree | 99b56513fb3f54852886a3d0eb7c8b3e1a9f2602 /sys/kern/kern_lockf.c | |
parent | a14e4dea11b5b83147d62a7cb7dacdec1ea19e15 (diff) | |
download | FreeBSD-src-645e7b2ab6676a2a3a05a59a053929d3b7732b4d.zip FreeBSD-src-645e7b2ab6676a2a3a05a59a053929d3b7732b4d.tar.gz |
Distribute and statizice a lot of the malloc M_* types.
Substantial input from: bde
Diffstat (limited to 'sys/kern/kern_lockf.c')
-rw-r--r-- | sys/kern/kern_lockf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/kern_lockf.c b/sys/kern/kern_lockf.c index 000e645..f8adbcc 100644 --- a/sys/kern/kern_lockf.c +++ b/sys/kern/kern_lockf.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)ufs_lockf.c 8.3 (Berkeley) 1/6/94 - * $Id: kern_lockf.c,v 1.13 1997/02/22 09:39:06 peter Exp $ + * $Id: kern_lockf.c,v 1.14 1997/04/01 10:30:06 bde Exp $ */ #include <sys/param.h> @@ -60,10 +60,13 @@ static int maxlockdepth = MAXDEPTH; #include <ufs/ufs/quota.h> #include <ufs/ufs/inode.h> + static int lockf_debug = 0; SYSCTL_INT(_debug, OID_AUTO, lockf_debug, CTLFLAG_RW, &lockf_debug, 0, ""); #endif +MALLOC_DEFINE(M_LOCKF, "lockf", "Byte-range locking structures"); + #define NOLOCKF (struct lockf *)0 #define SELF 0x1 #define OTHERS 0x2 |