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:
@@ -208,7 +208,6 @@ struct scsi_iovector {
|
|||||||
struct scsi_iovec *iov;
|
struct scsi_iovec *iov;
|
||||||
int niov;
|
int niov;
|
||||||
int nalloc;
|
int nalloc;
|
||||||
size_t size;
|
|
||||||
size_t offset;
|
size_t offset;
|
||||||
int consumed;
|
int consumed;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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_len = len;
|
||||||
iovector->iov[iovector->niov].iov_base = buf;
|
iovector->iov[iovector->niov].iov_base = buf;
|
||||||
iovector->niov++;
|
iovector->niov++;
|
||||||
iovector->size += len;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user