mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[FASTFAT]
Implement statistics counting for non cached read/write operations. svn path=/trunk/; revision=75961
This commit is contained in:
parent
bc87785826
commit
d875d1bd49
1 changed files with 6 additions and 0 deletions
|
@ -722,6 +722,9 @@ VfatRead(
|
|||
Length = (ULONG)(ROUND_UP_64(Fcb->RFCB.FileSize.QuadPart, BytesPerSector) - ByteOffset.QuadPart);
|
||||
}
|
||||
|
||||
vfatAddToStat(IrpContext->DeviceExt, Fat.NonCachedReads, 1);
|
||||
vfatAddToStat(IrpContext->DeviceExt, Fat.NonCachedReadBytes, Length);
|
||||
|
||||
Status = VfatReadFileData(IrpContext, Length, ByteOffset, &ReturnedLength);
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
|
@ -1003,6 +1006,9 @@ VfatWrite(
|
|||
CcZeroData(IrpContext->FileObject, &OldFileSize, &ByteOffset, TRUE);
|
||||
}
|
||||
|
||||
vfatAddToStat(IrpContext->DeviceExt, Fat.NonCachedWrites, 1);
|
||||
vfatAddToStat(IrpContext->DeviceExt, Fat.NonCachedWriteBytes, Length);
|
||||
|
||||
Status = VfatWriteFileData(IrpContext, Length, ByteOffset);
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue