diff options
author | julian <julian@FreeBSD.org> | 1999-03-14 09:20:01 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1999-03-14 09:20:01 +0000 |
commit | 0c3f3973d253c1aedd05a44d33615546f4ea3c9d (patch) | |
tree | 98d1b3e17dccced065927853ce8eff90fe432af1 /sys/vm/vm_pager.h | |
parent | 105e87d9a2deffdb189a0b80eacc001d79ed0fad (diff) | |
download | FreeBSD-src-0c3f3973d253c1aedd05a44d33615546f4ea3c9d.zip FreeBSD-src-0c3f3973d253c1aedd05a44d33615546f4ea3c9d.tar.gz |
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
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 e0b402e..82b6574 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_ */ |