SCSI_IOVECTOR remove size field

Remove the size field as it is not used. If we would keep it
we would have to calculate it in scsi_task_set_iov_in/out which
would add unneccassry wals to the iovec array.

Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
Peter Lieven
2012-11-27 11:29:51 +01:00
parent 548bd22f51
commit 58e5ef5cbc
2 changed files with 0 additions and 2 deletions

View File

@@ -208,7 +208,6 @@ struct scsi_iovector {
struct scsi_iovec *iov;
int niov;
int nalloc;
size_t size;
size_t offset;
int consumed;
};

View File

@@ -2589,7 +2589,6 @@ scsi_iovector_add(struct scsi_task *task, struct scsi_iovector *iovector, int le
iovector->iov[iovector->niov].iov_len = len;
iovector->iov[iovector->niov].iov_base = buf;
iovector->niov++;
iovector->size += len;
return 0;
}