summaryrefslogtreecommitdiffstats
path: root/sys/vm/vnode_pager.h
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-02-26 06:39:59 +0000
committermsmith <msmith@FreeBSD.org>1998-02-26 06:39:59 +0000
commit15e6194107ac825d2decda9954710a2fbbbe591d (patch)
tree455b67168529813206d6fd3225edcad28f7e615c /sys/vm/vnode_pager.h
parentabb797303f8a1c9c501930df5cee82ba24bbc3a0 (diff)
downloadFreeBSD-src-15e6194107ac825d2decda9954710a2fbbbe591d.zip
FreeBSD-src-15e6194107ac825d2decda9954710a2fbbbe591d.tar.gz
In the author's words:
These diffs implement the first stage of a VOP_{GET|PUT}PAGES pushdown for local media FS's. See ffs_putpages in /sys/ufs/ufs/ufs_readwrite.c for implementation details for generic *_{get|put}pages for local media FS's. Support is trivial to add for any FS that formerly relied on the default behaviour of the vnode_pager in in EOPNOTSUPP cases (just copy the ffs_getpages() code for the FS in question's *_{get|put}pages). Obviously, it would be better if each local media FS implemented a more optimal method, instead of calling an exported interface from the /sys/vm/vnode_pager.c, but this is a necessary first step in getting the FS's to a point where they can be supplied with better implementations on a case-by-case basis. Obviously, the cd9660_putpages() can be rather trivial (since it is a read-only FS type 8-)). A slight (temporary) modification is made to print a diagnostic message in the case where the underlying filesystem attempts to engage in the previous behaviour. Failure is likely to be ungraceful. Submitted by: terry@freebsd.org (Terry Lambert)
Diffstat (limited to 'sys/vm/vnode_pager.h')
-rw-r--r--sys/vm/vnode_pager.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/vm/vnode_pager.h b/sys/vm/vnode_pager.h
index c7a0c9b..4402e14 100644
--- a/sys/vm/vnode_pager.h
+++ b/sys/vm/vnode_pager.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vnode_pager.h 8.1 (Berkeley) 6/11/93
- * $Id$
+ * $Id: vnode_pager.h,v 1.10 1997/02/22 09:48:43 peter Exp $
*/
#ifndef _VNODE_PAGER_
@@ -46,6 +46,16 @@
vm_object_t vnode_pager_alloc __P((void *, vm_size_t, vm_prot_t, vm_ooffset_t));
void vnode_pager_freepage __P((vm_page_t m));
struct vnode *vnode_pager_lock __P((vm_object_t));
+
+/*
+ * XXX Generic routines; currently called by badly written FS code; these
+ * XXX should go away soon.
+ */
+int vnode_pager_generic_getpages __P((struct vnode *vp, vm_page_t *m,
+ int count, int reqpage));
+int vnode_pager_generic_putpages __P((struct vnode *vp, vm_page_t *m,
+ int count, boolean_t sync,
+ int *rtvals));
#endif
#endif /* _VNODE_PAGER_ */
OpenPOWER on IntegriCloud