getpages/putpages fixup part 1 - Add support for UIO_NOCOPY VOP_WRITEs to
commit10018f059e19f30513144217f4826b669dab1682
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 21 Aug 2007 17:26:48 +0000 (21 17:26 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 21 Aug 2007 17:26:48 +0000 (21 17:26 +0000)
tree904f16736e86fcec50789cd49eb0fa6ac2b467ef
parentc4a78ca794fa6d9964f1d3330cd9e1c1dfe2efcf
getpages/putpages fixup part 1 - Add support for UIO_NOCOPY VOP_WRITEs to
filesystems which use the buffer cache and assert that UIO_NOCOPY is not
being used for filesystems which do not.

For filesystems using the buffer cache all we have to do is force a
read-before-write to fill in any missing pieces of the buffer.

UIO_NOCOPY writes are used for buffer-cache-backed filesystems which do
not implement their own vop_putpages code.  At the moment this is only
the msdosfs.
sys/kern/kern_physio.c
sys/netproto/ncp/ncp_subr.c
sys/netproto/smb/smb_smb.c
sys/vfs/gnu/ext2fs/ext2_readwrite.c
sys/vfs/hpfs/hpfs_vnops.c
sys/vfs/msdosfs/msdosfs_vnops.c
sys/vfs/nfs/nfs_bio.c
sys/vfs/ntfs/ntfs_subr.c
sys/vfs/specfs/spec_vnops.c
sys/vfs/ufs/ufs_readwrite.c
sys/vfs/userfs/userfs_vnops.c