mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 20:19:26 +00:00
[FASTFAT]
- On rename/move, flush parent directory data from cache instead of purging it. CORE-12893 svn path=/trunk/; revision=74354
This commit is contained in:
parent
4923220ed0
commit
880f06c728
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue