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%.
This commit is contained in:
Bruce Evans 1995-12-05 20:54:42 +00:00
parent d74abd4029
commit 0ff89d5b03
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12642
2 changed files with 13 additions and 2 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)types.h 8.4 (Berkeley) 1/21/94
* $Id: types.h,v 1.4 1994/09/25 15:56:25 davidg Exp $
* $Id: types.h,v 1.5 1995/06/28 01:39:50 bde Exp $
*/
#ifndef _SYS_TYPES_H_
@ -75,6 +75,11 @@ typedef long segsz_t; /* segment size */
typedef long swblk_t; /* swap offset */
typedef unsigned long uid_t; /* user id */
#ifdef KERNEL
struct vm_page;
typedef struct vm_page *vm_page_t;
#endif
/*
* This belongs in unistd.h, but is placed here to ensure that programs
* casting the second parameter of lseek to off_t will get the correct

View File

@ -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>