From owner-freebsd-current Wed Feb 25 22:49:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA02429 for freebsd-current-outgoing; Wed, 25 Feb 1998 22:49:31 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA02424 for ; Wed, 25 Feb 1998 22:49:29 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id WAA22787 for ; Wed, 25 Feb 1998 22:48:25 -0800 (PST) Message-Id: <199802260648.WAA22787@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: current@FreeBSD.ORG Subject: REBUILD YOUR LKMS Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 25 Feb 1998 22:48:25 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This change alters the interface consumed by filesystem LKMs, and they should be recompiled for safety's sake. Nonstandard filesystem LKMs other than those behaving like NFS may need to be modified to obtain the correct behaviour. ------- Forwarded Message From: Michael Smith 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 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 ------- End of Forwarded Message -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message