diff options
author | Julian Elischer <julian@FreeBSD.org> | 1999-03-14 09:20:01 +0000 |
---|---|---|
committer | Julian Elischer <julian@FreeBSD.org> | 1999-03-14 09:20:01 +0000 |
commit | a5296b05b4d6fcbdc9f1ad4b9228cf83cc788308 (patch) | |
tree | 8ec57942265fc5e36100491f58e878894aac8be2 /sys/vm/vm_pager.h | |
parent | ac3101276b65afd60bdeecd6fb13c1dd1189c2b0 (diff) | |
download | src-a5296b05b4d6fcbdc9f1ad4b9228cf83cc788308.tar.gz src-a5296b05b4d6fcbdc9f1ad4b9228cf83cc788308.zip |
Submitted by: Matt Dillon <dillon@freebsd.org>
The old VN device broke in -4.x when the definition of B_PAGING
changed. This patch fixes this plus implements additional capabilities.
The new VN device can be backed by a file ( as per normal ), or it can
be directly backed by swap.
Due to dependencies in VM include files (on opt_xxx options) the new
vn device cannot be a module yet. This will be fixed in a later commit.
This commit delimitted by tags {PRE,POST}_MATT_VNDEV
Notes
Notes:
svn path=/head/; revision=44739
Diffstat (limited to 'sys/vm/vm_pager.h')
-rw-r--r-- | sys/vm/vm_pager.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/vm/vm_pager.h b/sys/vm/vm_pager.h index e0b402e03ba3..82b65740f845 100644 --- a/sys/vm/vm_pager.h +++ b/sys/vm/vm_pager.h @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vm_pager.h 8.4 (Berkeley) 1/12/94 - * $Id: vm_pager.h,v 1.19 1999/01/21 10:15:47 dillon Exp $ + * $Id: vm_pager.h,v 1.20 1999/01/24 02:32:15 dillon Exp $ */ /* @@ -50,6 +50,8 @@ TAILQ_HEAD(pagerlst, vm_object); +struct buf; + struct pagerops { void (*pgo_init) __P((void)); /* Initialize pager. */ vm_object_t (*pgo_alloc) __P((void *, vm_ooffset_t, vm_prot_t, vm_ooffset_t)); /* Allocate pager. */ @@ -58,6 +60,7 @@ struct pagerops { void (*pgo_putpages) __P((vm_object_t, vm_page_t *, int, int, int *)); /* Put (write) page. */ boolean_t (*pgo_haspage) __P((vm_object_t, vm_pindex_t, int *, int *)); /* Does pager have page? */ void (*pgo_pageunswapped) __P((vm_page_t)); + void (*pgo_strategy) __P((vm_object_t, struct buf *)); }; /* @@ -101,6 +104,11 @@ vm_offset_t vm_pager_map_page __P((vm_page_t)); void vm_pager_sync __P((void)); void vm_pager_unmap_pages __P((vm_offset_t, int)); void vm_pager_unmap_page __P((vm_offset_t)); +void vm_pager_strategy __P((vm_object_t object, struct buf *bp)); +struct buf *getchainbuf(struct buf *bp, struct vnode *vp, int flags); +void flushchainbuf(struct buf *nbp); +void waitchainbuf(struct buf *bp, int count, int done); +void autochaindone(struct buf *bp); static __inline int vm_pager_get_pages( @@ -149,7 +157,6 @@ vm_pager_page_unswapped(vm_page_t m) (*pagertab[m->object->type]->pgo_pageunswapped)(m); } - #endif #endif /* _VM_PAGER_ */ |