Windows: Update ValidDataLength on all nonPagingIo
authorJeffrey Altman <jaltman@your-file-system.com>
Sun, 7 Apr 2013 12:26:18 +0000 (08:26 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Tue, 9 Apr 2013 17:38:28 +0000 (10:38 -0700)
commit20328455d1519936f78025727d42ae91cf8e1e7d
tree7f99a9e09050a96f60c6a4526570c1fcc4ec273f
parent3cf2d46a8c29039a6c8d33a952888370aa885801
Windows: Update ValidDataLength on all nonPagingIo

Instead of updating the Fcb->Header.ValidDataLength only when
processing cached writes, update it for all non-PagingIo extending writes.
This ensures that a file that is extended by a mixture of cached and
non-cached (NO_INTERMEDIATE_BUFFERING) writes will properly trigger a
page fault when the Windows cache manager does not have a complete page
cached.

Change-Id: I255bb667e33fadd07eb8961901d33707812a8406
Reviewed-on: http://gerrit.openafs.org/9742
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Peter Scott <pscott@kerneldrivers.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsrdr/kernel/lib/AFSWrite.cpp