[NTOS:CC] Use UNIMPLEMENTED_ONCE instead of custom code

- Rewrite e319f85e67.
This commit is contained in:
Serge Gautherie 2018-02-22 15:31:04 +01:00 committed by Mark Jansen
parent c704cf5f87
commit 6618a2fd2c

View file

@ -165,7 +165,6 @@ CcScheduleReadAhead (
LARGE_INTEGER NewOffset;
PROS_SHARED_CACHE_MAP SharedCacheMap;
PPRIVATE_CACHE_MAP PrivateCacheMap;
static ULONG Warn;
SharedCacheMap = FileObject->SectionObjectPointer->SharedCacheMap;
PrivateCacheMap = FileObject->PrivateCacheMap;
@ -215,7 +214,7 @@ CcScheduleReadAhead (
{
/* FIXME: handle the other cases */
KeReleaseSpinLock(&PrivateCacheMap->ReadAheadSpinLock, OldIrql);
if (!Warn++) UNIMPLEMENTED;
UNIMPLEMENTED_ONCE;
return;
}
}