From: Jeffrey Altman Date: Thu, 29 Nov 2012 08:00:48 +0000 (-0500) Subject: Windows: AFSCleanup calls AFSDeleteFcbExtents X-Git-Tag: upstream/1.8.0_pre1^2~1755 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=da6c8d57287392c0e7d0c512dab5bcf019421f81;p=packages%2Fo%2Fopenafs.git Windows: AFSCleanup calls AFSDeleteFcbExtents When the hard link count of the file drops to zero, call AFSDeleteFcbExtents() instead of AFSTearDownFcbExtents() because the file has been deleted and the extents have been implicitly released. Change-Id: I4198ece075a23850699ae188943d06df7bf4c668 Reviewed-on: http://gerrit.openafs.org/8565 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/kernel/lib/AFSCleanup.cpp b/src/WINNT/afsrdr/kernel/lib/AFSCleanup.cpp index 52a63d72b..7cd457eaa 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSCleanup.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSCleanup.cpp @@ -498,12 +498,10 @@ AFSCleanup( IN PDEVICE_OBJECT LibDeviceObject, FALSE); // - // Before telling the server about the deleted file, tear down all extents for - // the file + // The file has been deleted since the Link count is zero // - AFSTearDownFcbExtents( pFcb, - &pCcb->AuthGroup); + AFSDeleteFcbExtents( pFcb); AFSDbgLogMsg( AFS_SUBSYSTEM_LOCK_PROCESSING, AFS_TRACE_LEVEL_VERBOSE,