cvs commit: src/sys/kern vfs_subr.c src/sys/nfsclient nfs_bio.c src/sys/fs/smbfs smbfs_io.c src/sys/fs/nwfs nwfs_io.c

Stephan Uphoff ups at FreeBSD.org
Wed May 24 18:01:29 PDT 2006


ups         2006-05-25 01:00:36 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_subr.c 
    sys/nfsclient        nfs_bio.c 
    sys/fs/smbfs         smbfs_io.c 
    sys/fs/nwfs          nwfs_io.c 
  Log:
  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
  
  Revision  Changes    Path
  1.43      +4 -0      src/sys/fs/nwfs/nwfs_io.c
  1.35      +4 -0      src/sys/fs/smbfs/smbfs_io.c
  1.673     +1 -1      src/sys/kern/vfs_subr.c
  1.157     +11 -0     src/sys/nfsclient/nfs_bio.c


More information about the cvs-all mailing list