diff --git a/src/WINNT/afsrdr/kernel/lib/AFSCleanup.cpp b/src/WINNT/afsrdr/kernel/lib/AFSCleanup.cpp index 0130c3db4d..3e370aba0a 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSCleanup.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSCleanup.cpp @@ -550,6 +550,8 @@ AFSCleanup( IN PDEVICE_OBJECT LibDeviceObject, AFSFlushExtents( pFcb, &pCcb->AuthGroup); + + ulNotificationFlags |= AFS_REQUEST_FLAG_FLUSH_FILE; } if( pFcb->OpenHandleCount == 1) @@ -561,8 +563,6 @@ AFSCleanup( IN PDEVICE_OBJECT LibDeviceObject, AFSWaitOnQueuedFlushes( pFcb); - ulNotificationFlags |= AFS_REQUEST_FLAG_FLUSH_FILE; - AFSTearDownFcbExtents( pFcb, &pCcb->AuthGroup); }