freebsd-src/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.h
nwfs_io.c In the VOP_PUTPAGES() implementations, change the default error from 2011-06-01 21:00:28 +00:00
nwfs_ioctl.c
nwfs_mount.h
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
nwfs_subr.c
nwfs_subr.h
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