freebsd-dev/sys/fs/nwfs
Konstantin Belousov 031ec8c10a 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
..
nwfs_io.c In the VOP_PUTPAGES() implementations, change the default error from 2011-06-01 21:00:28 +00:00
nwfs_ioctl.c Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
nwfs_mount.h Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
nwfs_node.c Add dedicated routines to toggle lockmgr flags such as LK_NOSHARE and 2010-08-20 19:46:50 +00:00
nwfs_node.h Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
nwfs_subr.c Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
nwfs_subr.h Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
nwfs_vfsops.c M_USE_RESERVE has been deprecated for a decade. Eliminate any uses that 2010-10-02 17:58:57 +00:00
nwfs_vnops.c Remove unused includes of <sys/mutex.h> and <machine/mutex.h>. 2010-11-09 20:41:10 +00:00
nwfs.h Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00