mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTOSKRNL] Unmark dirty first, and then write.
This will avoid trying to flush twice a dirty VACB under high IOs pressure. CORE-14584
This commit is contained in:
parent
2a7d16727a
commit
cc54e51495
1 changed files with 4 additions and 2 deletions
|
@ -168,10 +168,12 @@ CcRosFlushVacb (
|
|||
{
|
||||
NTSTATUS Status;
|
||||
|
||||
CcRosUnmarkDirtyVacb(Vacb, TRUE);
|
||||
|
||||
Status = CcWriteVirtualAddress(Vacb);
|
||||
if (NT_SUCCESS(Status))
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
CcRosUnmarkDirtyVacb(Vacb, TRUE);
|
||||
CcRosMarkDirtyVacb(Vacb);
|
||||
}
|
||||
|
||||
return Status;
|
||||
|
|
Loading…
Reference in a new issue