From owner-cvs-sys Wed Feb 25 22:40:39 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA01582 for cvs-sys-outgoing; Wed, 25 Feb 1998 22:40:39 -0800 (PST) (envelope-from owner-cvs-sys) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA01532; Wed, 25 Feb 1998 22:40:28 -0800 (PST) (envelope-from msmith@FreeBSD.org) From: Michael Smith Received: (from msmith@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id WAA02687; Wed, 25 Feb 1998 22:40:00 -0800 (PST) Date: Wed, 25 Feb 1998 22:40:00 -0800 (PST) Message-Id: <199802260640.WAA02687@freefall.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 Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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