[FASTFAT]
authorThomas Faber <thomas.faber@reactos.org>
Mon, 17 Apr 2017 16:54:28 +0000 (16:54 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 17 Apr 2017 16:54:28 +0000 (16:54 +0000)
- 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

index 2a54882..68f1579 100644 (file)
@@ -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;
 }