freebsd-skq/sys/fs/nwfs
ups 4eb5a7d9ee Do not set B_NOCACHE on buffers when releasing them in flushbuflist().
If B_NOCACHE is set the pages of vm backed buffers will be invalidated.
However clean buffers can be backed by dirty VM pages so invalidating them
can lead to data loss.
Add support for flush dirty page in the data invalidation function
of some network file systems.

This fixes data losses during vnode recycling (and other code paths
using invalbuf(*,V_SAVE,*,*)) for data written using an mmaped file.

Collaborative effort by: jhb@,mohans@,peter@,ps@,ups@
Reviewed by:	tegge@
MFC after:	7 days
2006-05-25 01:00:35 +00:00
..
nwfs_io.c Do not set B_NOCACHE on buffers when releasing them in flushbuflist(). 2006-05-25 01:00:35 +00:00
nwfs_ioctl.c /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 18:10:42 +00:00
nwfs_mount.h /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 18:10:42 +00:00
nwfs_node.c I ran into an nfs client panic a couple of times in a row over the 2006-01-17 17:29:03 +00:00
nwfs_node.h /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 18:10:42 +00:00
nwfs_subr.c Normalize a significant number of kernel malloc type names: 2005-10-31 15:41:29 +00:00
nwfs_subr.h /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 18:10:42 +00:00
nwfs_vfsops.c Eradicate caddr_t from the VFS API. 2005-12-14 00:49:52 +00:00
nwfs_vnops.c Update nwfs_lookup() to match the current cache_lookup() API. 2005-10-16 21:54:35 +00:00
nwfs.h Eliminate constant and unused arguments to nwfs_vinvalbuf() 2005-01-14 08:09:42 +00:00