[prev in list] [next in list] [prev in thread] [next in thread]
List: win-pv-devel
Subject: [win-pv-devel] [PATCH xenvbd] Make PdoSendTrimSynchronous less noisy
From: Paul Durrant <paul.durrant () citrix ! com>
Date: 2019-04-05 15:41:51
Message-ID: 1554478911-4065-1-git-send-email-paul.durrant () citrix ! com
[Download RAW message or body]
Remove the 'TRIM' Trace statement. Also fix some hard-tab nonsense in
nearby code.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
---
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@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/win-pv-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic