Fcb->NonPaged = NonPagedFcb;
ZeroAndInitializeNodeType(Fcb->NonPaged, RDBSS_NTC_NONPAGED_FCB, sizeof(NON_PAGED_FCB));
+#if DBG
Fcb->CopyOfNonPaged = NonPagedFcb;
NonPagedFcb->FcbBackPointer = Fcb;
+#endif
Fcb->InternalSrvOpen = SrvOpen;
Fcb->InternalFobx = Fobx;
DPRINT("RxCreateRxContext(%p, %p, %u)\n", Irp, RxDeviceObject, InitialContextFlags);
+#if DBG
InterlockedIncrement((volatile LONG *)&RxFsdEntryCount);
+#endif
InterlockedIncrement((volatile LONG *)&RxDeviceObject->NumberOfActiveContexts);
/* Allocate the context from our lookaside list */
KeSetEvent(&StopContext->SyncEvent, IO_NO_INCREMENT, FALSE);
}
+#if DBG
/* Is ShadowCrit still owned? Shouldn't happen! */
if (RxContext->ShadowCritOwner != 0)
{
DPRINT1("ShadowCritOwner not null! %p\n", (PVOID)RxContext->ShadowCritOwner);
ASSERT(FALSE);
}
+#endif
/* If it was allocated, free it */
if (Allocated)
/* Wait for the scavenger, if asked to */
if (SynchronizeWithScavenger)
{
- KeWaitForSingleObject(&Scavenger->SyncEvent, Executive, KernelMode, FALSE, NULL);
+ KeWaitForSingleObject(&Scavenger->ScavengeEvent, Executive, KernelMode, FALSE, NULL);
}
RxAcquireScavengerMutex();
if (SynchronizeWithScavenger)
{
- KeSetEvent(&Scavenger->SyncEvent, IO_NO_INCREMENT, FALSE);
+ KeSetEvent(&Scavenger->ScavengeEvent, IO_NO_INCREMENT, FALSE);
}
}
UNICODE_STRING InsensitiveName, InsensitivePrefix;
Entry = CONTAINING_RECORD(ListEntry, RX_PREFIX_ENTRY, HashLinks);
+#if DBG
++ThisTable->Considers;
+#endif
ASSERT(HashBucket == HASH_BUCKET(ThisTable, Entry->SavedHashValue));
Container = Entry->ContainingRecord;
continue;
}
+#if DBG
++ThisTable->Compares;
+#endif
/* If we have to perform a case insensitive compare on a portion... */
if (Entry->CaseInsensitiveLength != 0)
{
}
}
+#ifdef RDBSS_TRACKER
/*
* @implemented
*/
ASSERT(RxContext->AcquireReleaseFcbTrackerX >= 0);
}
}
+#endif
VOID
RxTrackPagingIoResource(