getpages/putpages fixup part 1 - Add support for UIO_NOCOPY VOP_WRITEs to
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 21 Aug 2007 17:26:48 +0000 (17:26 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 21 Aug 2007 17:26:48 +0000 (17:26 +0000)
commit8aa7625b56364a334d7c4038061d23aac9b58218
tree4530ad8989719c09eac61de7e87cc4043ec687e2
parent0e49ec848196dfdfc5336934792b2844086abe6b
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