https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e319f85e67b1d057fb1c0…
commit e319f85e67b1d057fb1c0d0449a6756fa0d459ba
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Feb 18 11:30:51 2018 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Feb 18 11:31:14 2018 +0100
[NTOSKRNL] Don't make CcScheduleReadAhead() too noisy
---
ntoskrnl/cc/cacheman.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ntoskrnl/cc/cacheman.c b/ntoskrnl/cc/cacheman.c
index 99abf84e5d..9ef906ee43 100644
--- a/ntoskrnl/cc/cacheman.c
+++ b/ntoskrnl/cc/cacheman.c
@@ -165,6 +165,7 @@ CcScheduleReadAhead (
LARGE_INTEGER NewOffset;
PROS_SHARED_CACHE_MAP SharedCacheMap;
PPRIVATE_CACHE_MAP PrivateCacheMap;
+ static ULONG Warn;
SharedCacheMap = FileObject->SectionObjectPointer->SharedCacheMap;
PrivateCacheMap = FileObject->PrivateCacheMap;
@@ -214,7 +215,7 @@ CcScheduleReadAhead (
{
/* FIXME: handle the other cases */
KeReleaseSpinLock(&PrivateCacheMap->ReadAheadSpinLock, OldIrql);
- UNIMPLEMENTED;
+ if (!Warn++) UNIMPLEMENTED;
return;
}
}