Windows: AFSTearDownFcbExtents count extents properly
authorJeffrey Altman <jaltman@your-file-system.com>
Thu, 29 Nov 2012 08:02:48 +0000 (03:02 -0500)
committerJeffrey Altman <jaltman@your-file-system.com>
Mon, 3 Dec 2012 22:05:03 +0000 (14:05 -0800)
commit957601aeab7050413c4e0c9994e2c263a1b8374d
tree5980d5ab1458a089bef116368cc1136f237a43b7
parentda6c8d57287392c0e7d0c512dab5bcf019421f81
Windows: AFSTearDownFcbExtents count extents properly

Fcb->Specific.File.ExtentsCount cannot be used directly
in the for loop conditional because each call to AFSFreeExtent()
decrements the value.  Instead, save the original value to
'lFcbExtentCount' and use that in the loop conditional.

Change-Id: I7b2dc0fbd1cbf0eec2f627f8caad8c973c3437c7
Reviewed-on: http://gerrit.openafs.org/8566
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsrdr/kernel/lib/AFSExtentsSupport.cpp