Date: Wed, 25 Feb 1998 22:40:00 -0800 (PST) From: Michael Smith <msmith@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/ufs/ffs ffs_vnops.c src/sys/ufs/ufs ufs_readwrite.c src/sys/vm vnode_pager.c vnode_pager.h Message-ID: <199802260640.WAA02687@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
msmith 1998/02/25 22:40:00 PST Modified files: sys/ufs/ffs ffs_vnops.c sys/ufs/ufs ufs_readwrite.c sys/vm vnode_pager.c vnode_pager.h Log: 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) Revision Changes Path 1.43 +3 -1 src/sys/ufs/ffs/ffs_vnops.c 1.43 +15 -1 src/sys/ufs/ufs/ufs_readwrite.c 1.87 +51 -27 src/sys/vm/vnode_pager.c 1.11 +11 -1 src/sys/vm/vnode_pager.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802260640.WAA02687>