[NTOSKRNL] Implement write behind in Cc

For now, this is just a split between scan and flush that
were both done during lazy scan previously.
Lazy scan shouldn't perform any write operation, but only
queue a write behind operation.

Our implementation is far from the original, as it seems
our lazy scan should queue a write behind operation per
shared cache map. Right now, we only perform global
operation.
This commit is contained in:
Pierre Schweitzer 2018-12-23 14:43:17 +01:00
parent d5c74ae6fe
commit 7e97071c8b
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
2 changed files with 51 additions and 12 deletions

View file

@ -278,7 +278,7 @@ typedef enum _WORK_QUEUE_FUNCTIONS
{
ReadAhead = 1,
WriteBehind = 2,
LazyWrite = 3,
LazyScan = 3,
SetDone = 4,
} WORK_QUEUE_FUNCTIONS, *PWORK_QUEUE_FUNCTIONS;