Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vhost-scsi: Rename vhost_scsi_iov_to_sgl

Rename vhost_scsi_iov_to_sgl to vhost_scsi_map_iov_to_sgl so it matches
matches the naming style used for vhost_scsi_copy_iov_to_sgl.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Message-Id: <20230709202859.138387-3-michael.christie@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>

authored by

Mike Christie and committed by
Michael S. Tsirkin
c5ace19e 5ced58bf

+7 -6
+7 -6
drivers/vhost/scsi.c
··· 780 780 } 781 781 782 782 static int 783 - vhost_scsi_iov_to_sgl(struct vhost_scsi_cmd *cmd, struct iov_iter *iter, 784 - struct scatterlist *sg, int sg_count, bool is_prot) 783 + vhost_scsi_map_iov_to_sgl(struct vhost_scsi_cmd *cmd, struct iov_iter *iter, 784 + struct scatterlist *sg, int sg_count, bool is_prot) 785 785 { 786 786 struct scatterlist *p = sg; 787 787 size_t revert_bytes; ··· 829 829 pr_debug("%s prot_sg %p prot_sgl_count %u\n", __func__, 830 830 cmd->tvc_prot_sgl, cmd->tvc_prot_sgl_count); 831 831 832 - ret = vhost_scsi_iov_to_sgl(cmd, prot_iter, cmd->tvc_prot_sgl, 833 - cmd->tvc_prot_sgl_count, true); 832 + ret = vhost_scsi_map_iov_to_sgl(cmd, prot_iter, 833 + cmd->tvc_prot_sgl, 834 + cmd->tvc_prot_sgl_count, true); 834 835 if (ret < 0) { 835 836 cmd->tvc_prot_sgl_count = 0; 836 837 return ret; ··· 847 846 pr_debug("%s data_sg %p data_sgl_count %u\n", __func__, 848 847 cmd->tvc_sgl, cmd->tvc_sgl_count); 849 848 850 - ret = vhost_scsi_iov_to_sgl(cmd, data_iter, cmd->tvc_sgl, 851 - cmd->tvc_sgl_count, false); 849 + ret = vhost_scsi_map_iov_to_sgl(cmd, data_iter, cmd->tvc_sgl, 850 + cmd->tvc_sgl_count, false); 852 851 if (ret == -EINVAL) { 853 852 sg_init_table(cmd->tvc_sgl, cmd->tvc_sgl_count); 854 853 ret = vhost_scsi_copy_iov_to_sgl(cmd, data_iter, cmd->tvc_sgl,