diff --git a/src/WINNT/afsrdr/common/AFSRedirCommonStructs.h b/src/WINNT/afsrdr/common/AFSRedirCommonStructs.h index f813a58112..2dcf80a91e 100644 --- a/src/WINNT/afsrdr/common/AFSRedirCommonStructs.h +++ b/src/WINNT/afsrdr/common/AFSRedirCommonStructs.h @@ -217,8 +217,6 @@ typedef struct _AFS_NONPAGED_FCB struct { - KEVENT DirectoryEnumEvent; - LONG DirectoryEnumCount; } Directory; diff --git a/src/WINNT/afsrdr/kernel/lib/AFSFcbSupport.cpp b/src/WINNT/afsrdr/kernel/lib/AFSFcbSupport.cpp index 9f697f7957..5e148e4de2 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSFcbSupport.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSFcbSupport.cpp @@ -179,14 +179,6 @@ AFSInitFcb( IN AFSDirectoryCB *DirEntry) // pFcb->Header.NodeTypeCode = AFS_DIRECTORY_FCB; - - // - // Initialize enumeration information - // - - KeInitializeEvent( &pFcb->NPFcb->Specific.Directory.DirectoryEnumEvent, - NotificationEvent, - FALSE); } else if( pObjectInfo->FileType == AFS_FILE_TYPE_FILE) { @@ -957,14 +949,6 @@ AFSInitRootFcb( IN ULONGLONG ProcessID, pFcb->NPFcb = pNPFcb; - // - // Initialize enumeration information - // - - KeInitializeEvent( &pFcb->NPFcb->Specific.Directory.DirectoryEnumEvent, - NotificationEvent, - FALSE); - // // Save the root Fcb in the VolumeCB // diff --git a/src/WINNT/afsrdr/kernel/lib/AFSGeneric.cpp b/src/WINNT/afsrdr/kernel/lib/AFSGeneric.cpp index ec9a0253bd..dfd8968e10 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSGeneric.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSGeneric.cpp @@ -5398,25 +5398,10 @@ AFSSetEnumerationEvent( IN AFSFcb *Fcb) { case AFS_DIRECTORY_FCB: - { - - KeSetEvent( &Fcb->NPFcb->Specific.Directory.DirectoryEnumEvent, - 0, - FALSE); - - lCount = InterlockedIncrement( &Fcb->NPFcb->Specific.Directory.DirectoryEnumCount); - - break; - } - case AFS_ROOT_FCB: case AFS_ROOT_ALL: { - KeSetEvent( &Fcb->NPFcb->Specific.Directory.DirectoryEnumEvent, - 0, - FALSE); - lCount = InterlockedIncrement( &Fcb->NPFcb->Specific.Directory.DirectoryEnumCount); break; @@ -5440,21 +5425,6 @@ AFSClearEnumerationEvent( IN AFSFcb *Fcb) { case AFS_DIRECTORY_FCB: - { - - ASSERT( Fcb->NPFcb->Specific.Directory.DirectoryEnumCount > 0); - - lCount = InterlockedDecrement( &Fcb->NPFcb->Specific.Directory.DirectoryEnumCount); - - if( lCount == 0) - { - - KeClearEvent( &Fcb->NPFcb->Specific.Directory.DirectoryEnumEvent); - } - - break; - } - case AFS_ROOT_FCB: case AFS_ROOT_ALL: { @@ -5463,12 +5433,6 @@ AFSClearEnumerationEvent( IN AFSFcb *Fcb) lCount = InterlockedDecrement( &Fcb->NPFcb->Specific.Directory.DirectoryEnumCount); - if( lCount == 0) - { - - KeClearEvent( &Fcb->NPFcb->Specific.Directory.DirectoryEnumEvent); - } - break; } } @@ -5491,30 +5455,15 @@ AFSIsEnumerationInProcess( IN AFSObjectInfoCB *ObjectInfo) try_return( bIsInProcess); } - // - // Depending on the type of node, set the event - // - switch( ObjectInfo->Fcb->Header.NodeTypeCode) { case AFS_DIRECTORY_FCB: - { - - if( KeReadStateEvent( &ObjectInfo->Fcb->NPFcb->Specific.Directory.DirectoryEnumEvent)) - { - - bIsInProcess = TRUE; - } - - break; - } - case AFS_ROOT_FCB: case AFS_ROOT_ALL: { - if( KeReadStateEvent( &ObjectInfo->Fcb->NPFcb->Specific.Directory.DirectoryEnumEvent)) + if( ObjectInfo->Fcb->NPFcb->Specific.Directory.DirectoryEnumCount > 0) { bIsInProcess = TRUE;