https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bdb73edab7d444cdb5e49…
commit bdb73edab7d444cdb5e49d1a166ccd7d0a721bf7
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Tue Jan 5 12:32:26 2021 +0100
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed Feb 3 09:41:23 2021 +0100
[NTOS:CC] Flush the whole VACB
Let Mm know what it has to do.
---
ntoskrnl/cc/view.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c
index dab292bd273..21fd37ad681 100644
--- a/ntoskrnl/cc/view.c
+++ b/ntoskrnl/cc/view.c
@@ -169,8 +169,7 @@ CcRosFlushVacb (
PROS_VACB Vacb)
{
IO_STATUS_BLOCK Iosb;
- SIZE_T FlushSize = min(VACB_MAPPING_GRANULARITY,
- Vacb->SharedCacheMap->SectionSize.QuadPart -
Vacb->FileOffset.QuadPart);
+ SIZE_T FlushSize = VACB_MAPPING_GRANULARITY;
NTSTATUS Status;
BOOLEAN HaveLock = FALSE;
@@ -1024,7 +1023,7 @@ CcRosDeleteFileCache (
/* Flush to disk, if needed */
if (Vacb->Dirty)
{
- SIZE_T FlushSize = min(VACB_MAPPING_GRANULARITY,
Vacb->SharedCacheMap->SectionSize.QuadPart - Vacb->FileOffset.QuadPart);
+ SIZE_T FlushSize = VACB_MAPPING_GRANULARITY;
IO_STATUS_BLOCK Iosb;
NTSTATUS Status;