From da6c8d57287392c0e7d0c512dab5bcf019421f81 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Thu, 29 Nov 2012 03:00:48 -0500 Subject: [PATCH 1/1] 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 --- src/WINNT/afsrdr/kernel/lib/AFSCleanup.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/WINNT/afsrdr/kernel/lib/AFSCleanup.cpp b/src/WINNT/afsrdr/kernel/lib/AFSCleanup.cpp index 52a63d7..7cd457e 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, -- 1.9.4