summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_lockf.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-02-18 14:37:26 +0000
committerbde <bde@FreeBSD.org>1997-02-18 14:37:26 +0000
commitd407637813eb05dd845afb38c36bc773ef9fdd2c (patch)
treef7114fa63d9b48416b74d01830fa74f01112a403 /sys/kern/kern_lockf.c
parent97cd1933ff95f8aac581ea3907ac1c78871479c7 (diff)
downloadFreeBSD-src-d407637813eb05dd845afb38c36bc773ef9fdd2c.zip
FreeBSD-src-d407637813eb05dd845afb38c36bc773ef9fdd2c.tar.gz
Added some ufs #includes so that this compiles with option LOCKF_DEBUG.
Moving this all from ufs wasn't a good move. At least the debugging routines depend on the file system. Cleaned up the LOCKF_DEBUG #includes.
Diffstat (limited to 'sys/kern/kern_lockf.c')
-rw-r--r--sys/kern/kern_lockf.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/kern/kern_lockf.c b/sys/kern/kern_lockf.c
index 78093b4..550417c 100644
--- a/sys/kern/kern_lockf.c
+++ b/sys/kern/kern_lockf.c
@@ -39,7 +39,6 @@
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/kernel.h>
#include <sys/proc.h>
#include <sys/unistd.h>
#include <sys/vnode.h>
@@ -55,8 +54,14 @@
static int maxlockdepth = MAXDEPTH;
#ifdef LOCKF_DEBUG
-#include <vm/vm.h>
+#include <sys/kernel.h>
#include <sys/sysctl.h>
+
+#include <vm/vm.h>
+
+#include <ufs/ufs/quota.h>
+#include <ufs/ufs/inode.h>
+
int lockf_debug = 0;
SYSCTL_INT(_debug, 4, lockf_debug, CTLFLAG_RW, &lockf_debug, 0, "");
#endif
OpenPOWER on IntegriCloud