From 880f06c728d1b520c8c34110244b34b4ba6a0c0c Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Mon, 17 Apr 2017 16:54:28 +0000 Subject: [PATCH] [FASTFAT] - On rename/move, flush parent directory data from cache instead of purging it. CORE-12893 svn path=/trunk/; revision=74354 --- reactos/drivers/filesystems/fastfat/dirwr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/drivers/filesystems/fastfat/dirwr.c b/reactos/drivers/filesystems/fastfat/dirwr.c index 2a548822fb2..68f15791027 100644 --- a/reactos/drivers/filesystems/fastfat/dirwr.c +++ b/reactos/drivers/filesystems/fastfat/dirwr.c @@ -132,7 +132,7 @@ vfatRenameEntry( Status = vfatUpdateFCB(DeviceExt, pFcb, &DirContext, pFcb->parentFcb); if (NT_SUCCESS(Status)) { - CcPurgeCacheSection(&pFcb->parentFcb->SectionObjectPointers, NULL, 0, FALSE); + CcFlushCache(&pFcb->parentFcb->SectionObjectPointers, NULL, 0, NULL); } return Status; @@ -987,7 +987,7 @@ VfatMoveEntry( } OldParent = pFcb->parentFcb; - CcPurgeCacheSection(&OldParent->SectionObjectPointers, NULL, 0, FALSE); + CcFlushCache(&OldParent->SectionObjectPointers, NULL, 0, NULL); MoveContext.InPlace = (OldParent == ParentFcb); /* Add our new entry with our cluster */ @@ -999,7 +999,7 @@ VfatMoveEntry( *pFcb->Attributes, &MoveContext); - CcPurgeCacheSection(&pFcb->parentFcb->SectionObjectPointers, NULL, 0, FALSE); + CcFlushCache(&pFcb->parentFcb->SectionObjectPointers, NULL, 0, NULL); return Status; }