]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move the buffered read/write code out of spec_{read|write} and into
authorPoul-Henning Kamp <phk@FreeBSD.org>
Mon, 4 Oct 1999 11:23:10 +0000 (11:23 +0000)
committerPoul-Henning Kamp <phk@FreeBSD.org>
Mon, 4 Oct 1999 11:23:10 +0000 (11:23 +0000)
commitaa4f4b695eccc81e2ed62021362e8e570970ea11
treefaec70523a039671424722db8e29f28458344f02
parent8657e599b38c1b6f6007fc8e21f3f3a4b84ab036
Move the buffered read/write code out of spec_{read|write} and into
two new functions spec_buf{read|write}.

Add sysctl vfs.bdev_buffered which defaults to 1 == true.  This
sysctl can be used to experimentally turn buffered behaviour for
bdevs off.  I should not be changed while any blockdevices are
open.  Remove the misplaced sysctl vfs.enable_userblk_io.

No other changes in behaviour.
sys/fs/specfs/spec_vnops.c
sys/kern/vfs_export.c
sys/kern/vfs_subr.c
sys/miscfs/specfs/spec_vnops.c
sys/sys/vnode.h