xref: /csrg-svn/sys/vm/vnode_pager.h (revision 63379)
145749Smckusick /*
245749Smckusick  * Copyright (c) 1990 University of Utah.
3*63379Sbostic  * Copyright (c) 1991, 1993
4*63379Sbostic  *	The Regents of the University of California.  All rights reserved.
545749Smckusick  *
645749Smckusick  * This code is derived from software contributed to Berkeley by
745749Smckusick  * the Systems Programming Group of the University of Utah Computer
845749Smckusick  * Science Department.
945749Smckusick  *
1045749Smckusick  * %sccs.include.redist.c%
1145749Smckusick  *
12*63379Sbostic  *	@(#)vnode_pager.h	8.1 (Berkeley) 06/11/93
1345749Smckusick  */
1445749Smckusick 
1545749Smckusick #ifndef	_VNODE_PAGER_
1645749Smckusick #define	_VNODE_PAGER_	1
1745749Smckusick 
1845749Smckusick /*
1945749Smckusick  * VNODE pager private data.
2045749Smckusick  */
2145749Smckusick struct vnpager {
2245749Smckusick 	int		vnp_flags;	/* flags */
2345749Smckusick 	struct vnode	*vnp_vp;	/* vnode */
2445749Smckusick 	vm_size_t	vnp_size;	/* vnode current size */
2545749Smckusick };
2645749Smckusick typedef struct vnpager	*vn_pager_t;
2745749Smckusick 
2845749Smckusick #define VN_PAGER_NULL	((vn_pager_t)0)
2945749Smckusick 
3045749Smckusick #define	VNP_PAGING	0x01		/* vnode used for pageout */
3145749Smckusick #define VNP_CACHED	0x02		/* vnode is cached */
3245749Smckusick 
3345749Smckusick #endif	/* _VNODE_PAGER_ */
34