summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-12-05 20:54:42 +0000
committerbde <bde@FreeBSD.org>1995-12-05 20:54:42 +0000
commit7a0e2a499463d826e686c57e556f9870f311c317 (patch)
treec49cfb45f139843040ec9dafb0b4dada9993e778 /sys/vm
parent9d43933c59b38dfc38337586c3f74c6b5c6dfe35 (diff)
downloadFreeBSD-src-7a0e2a499463d826e686c57e556f9870f311c317.zip
FreeBSD-src-7a0e2a499463d826e686c57e556f9870f311c317.tar.gz
Moved the declaration of vm_object_t from <vm/vm.h> to <sys/types.h>
(if KERNEL is defined). This allows removing the #includes of vm stuff in vnode_if.h, which will speed up the compilation of LINT by about 5%.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/vm/vm.h b/sys/vm/vm.h
index 5e90be6..e591b29 100644
--- a/sys/vm/vm.h
+++ b/sys/vm/vm.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)vm.h 8.2 (Berkeley) 12/13/93
- * $Id: vm.h,v 1.5 1995/07/13 08:48:18 davidg Exp $
+ * $Id: vm.h,v 1.6 1995/10/05 01:11:48 bde Exp $
*/
#ifndef VM_H
@@ -51,8 +51,14 @@ typedef struct vm_map *vm_map_t;
struct vm_object;
typedef struct vm_object *vm_object_t;
+#ifndef KERNEL
+/*
+ * This is defined in <sys/types.h> for the kernel so that vnode_if.h
+ * doesn't have to include <vm/vm.h>.
+ */
struct vm_page;
typedef struct vm_page *vm_page_t;
+#endif
#include <sys/vmmeter.h>
#include <sys/queue.h>
OpenPOWER on IntegriCloud