https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2b217e4ecf942126c4672f8d1c0a2fb55530d731

commit 2b217e4ecf942126c4672f8d1c0a2fb55530d731
Author: Pierre Schweitzer <pie...@reactos.org>
AuthorDate: Sat Nov 18 18:00:48 2017 +0100

    [NTOSKRNL]
    Don't make CcSetReadAheadGranularity() whine for every single file opened 
by FSDs making use of it.
---
 ntoskrnl/cc/cacheman.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ntoskrnl/cc/cacheman.c b/ntoskrnl/cc/cacheman.c
index 2369cad546..4d62314ccd 100644
--- a/ntoskrnl/cc/cacheman.c
+++ b/ntoskrnl/cc/cacheman.c
@@ -158,8 +158,10 @@ CcSetReadAheadGranularity (
        IN      ULONG           Granularity
        )
 {
+    static ULONG Warn;
+
     CCTRACE(CC_API_DEBUG, "FileObject=%p Granularity=%lu\n",
         FileObject, Granularity);
 
-       UNIMPLEMENTED;
+    if (!Warn++) UNIMPLEMENTED;
 }

Reply via email to