freebsd-skq/sys/fs/smbfs
kib ad5bd06523 In the VOP_PUTPAGES() implementations, change the default error from
VM_PAGER_AGAIN to VM_PAGER_ERROR for the uwritten pages. Return
VM_PAGER_AGAIN for the partially written page. Always forward at least
one page in the loop of vm_object_page_clean().

VM_PAGER_ERROR causes the page reactivation and does not clear the
page dirty state, so the write is not lost.

The change fixes an infinite loop in vm_object_page_clean() when the
filesystem returns permanent errors for some page writes.

Reported and tested by:	gavin
Reviewed by:	alc, rmacklem
MFC after:	1 week
2011-06-01 21:00:28 +00:00
..
smbfs_io.c In the VOP_PUTPAGES() implementations, change the default error from 2011-06-01 21:00:28 +00:00
smbfs_node.c Add dedicated routines to toggle lockmgr flags such as LK_NOSHARE and 2010-08-20 19:46:50 +00:00
smbfs_node.h Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
smbfs_smb.c Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
smbfs_subr.c Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
smbfs_subr.h Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
smbfs_vfsops.c M_USE_RESERVE has been deprecated for a decade. Eliminate any uses that 2010-10-02 17:58:57 +00:00
smbfs_vnops.c Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
smbfs.h Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00