https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6618a2fd2ce002b97f480…
commit 6618a2fd2ce002b97f4801f2d748f74bab68cccb
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Thu Feb 22 15:31:04 2018 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sat Apr 7 12:00:10 2018 +0200
[NTOS:CC] Use UNIMPLEMENTED_ONCE instead of custom code
- Rewrite e319f85e67b1d057fb1c0d0449a6756fa0d459ba.
---
ntoskrnl/cc/cacheman.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ntoskrnl/cc/cacheman.c b/ntoskrnl/cc/cacheman.c
index a2f9a9bb44..8ccd6a703d 100644
--- a/ntoskrnl/cc/cacheman.c
+++ b/ntoskrnl/cc/cacheman.c
@@ -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;
}
}