Author: tfaber
Date: Mon Apr 17 16:54:28 2017
New Revision: 74354
URL:
http://svn.reactos.org/svn/reactos?rev=74354&view=rev
Log:
[FASTFAT]
- On rename/move, flush parent directory data from cache instead of purging it.
CORE-12893
Modified:
trunk/reactos/drivers/filesystems/fastfat/dirwr.c
Modified: trunk/reactos/drivers/filesystems/fastfat/dirwr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/dirwr.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/dirwr.c [iso-8859-1] Mon Apr 17 16:54:28
2017
@@ -132,7 +132,7 @@
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 @@
}
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 @@
*pFcb->Attributes,
&MoveContext);
- CcPurgeCacheSection(&pFcb->parentFcb->SectionObjectPointers, NULL, 0,
FALSE);
+ CcFlushCache(&pFcb->parentFcb->SectionObjectPointers, NULL, 0, NULL);
return Status;
}