https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9c8792519737778c5b176…
commit 9c8792519737778c5b17606c4eccaee6ad9fb5ca
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Thu Feb 8 09:46:57 2018 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Thu Feb 8 11:02:26 2018 +0100
[NTOSKRNL] Implement CcSetReadAheadGranularity()
---
ntoskrnl/cc/cacheman.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/ntoskrnl/cc/cacheman.c b/ntoskrnl/cc/cacheman.c
index aacf818c8a..5d7ff571e6 100644
--- a/ntoskrnl/cc/cacheman.c
+++ b/ntoskrnl/cc/cacheman.c
@@ -243,10 +243,11 @@ CcSetReadAheadGranularity (
IN ULONG Granularity
)
{
- static ULONG Warn;
+ PPRIVATE_CACHE_MAP PrivateMap;
CCTRACE(CC_API_DEBUG, "FileObject=%p Granularity=%lu\n",
FileObject, Granularity);
- if (!Warn++) UNIMPLEMENTED;
+ PrivateMap = FileObject->PrivateCacheMap;
+ PrivateMap->ReadAheadMask = Granularity - 1;
}