Remove the vfs page replacement optimization and its ENABLE_VFS_IOOPT option.
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 25 Oct 2004 19:14:34 +0000 (19:14 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 25 Oct 2004 19:14:34 +0000 (19:14 +0000)
commit056b569595a81e2713a9f741a8a8cdb05fdc656c
tree3cd129f54e68facea6093dcc644aecfd26fa54fe
parent113f6df6223ef16c1fd5cc658214591d66e39b07
Remove the vfs page replacement optimization and its ENABLE_VFS_IOOPT option.
This never worked properly... that is, the semantics are broken compared to
a normal read or write in that the read 'buffer' will be modified out from
under the caller if the underlying file is.

What is really needed here is a copy-on-write feature that works in both
directions, similar to how a shared buffer is copied after a fork() if either
the parent or child modify it.  The optimization will eventually rewritten
with that in mind but not right now.
sys/conf/options
sys/config/LINT
sys/i386/conf/LINT
sys/kern/kern_subr.c
sys/kern/vfs_subr.c
sys/vfs/ufs/ufs_readwrite.c
sys/vm/vm_map.c