search for: iov_iter_truncate

Displaying 1 result from an estimated 1 matches for "iov_iter_truncate".

2018 Sep 21
2
[PATCH] vhost/scsi: truncate T10 PI iov_iter to prot_bytes
...that may be present. > * > * Also fix up the exp_data_len to reflect only the > @@ -973,6 +974,7 @@ vhost_scsi_handle_vq(struct vhost_scsi *vs, struct vhost_virtqueue *vq) > if (prot_bytes) { > exp_data_len -= prot_bytes; > prot_iter = data_iter; > + iov_iter_truncate(&prot_iter, prot_bytes); > iov_iter_advance(&data_iter, prot_bytes); > } > tag = vhost64_to_cpu(vq, v_req_pi.tag); > -- > 2.17.1