|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [win-pv-devel] [PATCH xenvbd] Make PdoSendTrimSynchronous less noisy
Remove the 'TRIM' Trace statement. Also fix some hard-tab nonsense in
nearby code.
Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
src/xendisk/pdo.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/xendisk/pdo.c b/src/xendisk/pdo.c
index dc7fc24..140f999 100644
--- a/src/xendisk/pdo.c
+++ b/src/xendisk/pdo.c
@@ -528,8 +528,8 @@ PdoSendTrimSynchronous(
Cdb->UNMAP.OperationCode = SCSIOP_UNMAP;
*(PUSHORT)Cdb->UNMAP.AllocationLength = _byteswap_ushort((USHORT)Length);
- *(PUSHORT)Unmap->DataLength = _byteswap_ushort((USHORT)(Length -
FIELD_OFFSET(UNMAP_LIST_HEADER, BlockDescrDataLength)));
- *(PUSHORT)Unmap->BlockDescrDataLength =
_byteswap_ushort((USHORT)(Length - FIELD_OFFSET(UNMAP_LIST_HEADER,
Descriptors[0])));
+ *(PUSHORT)Unmap->DataLength = _byteswap_ushort((USHORT)(Length -
FIELD_OFFSET(UNMAP_LIST_HEADER, BlockDescrDataLength)));
+ *(PUSHORT)Unmap->BlockDescrDataLength = _byteswap_ushort((USHORT)(Length -
FIELD_OFFSET(UNMAP_LIST_HEADER, Descriptors[0])));
for (Index = 0; Index < Count; ++Index) {
PUNMAP_BLOCK_DESCRIPTOR Block = &Unmap->Descriptors[Index];
@@ -538,11 +538,6 @@ PdoSendTrimSynchronous(
ULONG LengthInSectors = (ULONG)(Range->LengthInBytes /
Pdo->SectorSize);
ULONG64 OffsetInSectors = (ULONG64)(Range->StartingOffset /
Pdo->SectorSize);
- Trace("TRIM[%x] %x @ %llx\n",
- Index,
- LengthInSectors,
- OffsetInSectors);
-
*(PULONG64)Block->StartingLba = _byteswap_uint64(OffsetInSectors);
*(PULONG)Block->LbaCount = _byteswap_ulong(LengthInSectors);
}
--
2.5.3
_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/win-pv-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |