Date: Wed, 25 Feb 1998 22:48:25 -0800 From: Mike Smith <mike@smith.net.au> To: current@FreeBSD.ORG Subject: REBUILD YOUR LKMS Message-ID: <199802260648.WAA22787@dingo.cdrom.com>
next in thread | raw e-mail | index | archive | help
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 <msmith@FreeBSD.ORG>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802260648.WAA22787>
