Commit 114347da authored by Stefan Metzmacher's avatar Stefan Metzmacher Committed by Steve French
Browse files

smb: client: remove unused struct smbdirect_socket argument of smbd_iter_to_mr()



This will make it easier to move function to the common code
in future.

Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Acked-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
Signed-off-by: default avatarStefan Metzmacher <metze@samba.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 4c4b1d11
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -2385,8 +2385,7 @@ static struct smbdirect_mr_io *get_mr(struct smbdirect_socket *sc)
/*
 * Transcribe the pages from an iterator into an MR scatterlist.
 */
static int smbd_iter_to_mr(struct smbd_connection *info,
			   struct iov_iter *iter,
static int smbd_iter_to_mr(struct iov_iter *iter,
			   struct sg_table *sgt,
			   unsigned int max_sg)
{
@@ -2441,7 +2440,7 @@ struct smbdirect_mr_io *smbd_register_mr(struct smbd_connection *info,

	log_rdma_mr(INFO, "num_pages=0x%x count=0x%zx depth=%u\n",
		    num_pages, iov_iter_count(iter), sp->max_frmr_depth);
	smbd_iter_to_mr(info, iter, &smbdirect_mr->sgt, sp->max_frmr_depth);
	smbd_iter_to_mr(iter, &smbdirect_mr->sgt, sp->max_frmr_depth);

	rc = ib_dma_map_sg(sc->ib.dev, smbdirect_mr->sgt.sgl,
			   smbdirect_mr->sgt.nents, dir);