]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
smb: client: remove unused struct smbdirect_socket argument of smbd_iter_to_mr()
authorStefan Metzmacher <metze@samba.org>
Thu, 21 Aug 2025 23:14:38 +0000 (01:14 +0200)
committerSteve French <stfrench@microsoft.com>
Sun, 28 Sep 2025 23:29:51 +0000 (18:29 -0500)
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: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smbdirect.c

index e453b998a85952710e233b8e5c955acc8ac1dd71..dba3f461b5cf9b6418041aaf5bfa03fc62058770 100644 (file)
@@ -2385,8 +2385,7 @@ again:
 /*
  * 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);