diff options
| author | Stefan Metzmacher <metze@samba.org> | 2025-08-22 10:18:12 +0200 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-09-28 18:29:50 -0500 |
| commit | 869bb7284fb2976b59ad29455cddd44bce0976f7 (patch) | |
| tree | fc232dd2e48e30f2c54d81b9ce66d4c2c6049f7b | |
| parent | be8602d47d4116da477cba0e4284295892887b24 (diff) | |
| download | linux-869bb7284fb2976b59ad29455cddd44bce0976f7.tar.gz linux-869bb7284fb2976b59ad29455cddd44bce0976f7.zip | |
smb: client: pass struct smbdirect_socket to manage_credits_prior_sending()
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>
| -rw-r--r-- | fs/smb/client/smbdirect.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/smb/client/smbdirect.c b/fs/smb/client/smbdirect.c index 809c529b1b3c..adebee32442a 100644 --- a/fs/smb/client/smbdirect.c +++ b/fs/smb/client/smbdirect.c @@ -957,9 +957,8 @@ dma_mapping_failed: * buffer as possible, and extend the receive credits to remote peer * return value: the new credtis being granted. */ -static int manage_credits_prior_sending(struct smbd_connection *info) +static int manage_credits_prior_sending(struct smbdirect_socket *sc) { - struct smbdirect_socket *sc = &info->socket; int new_credits; if (atomic_read(&sc->recv_io.credits.count) >= sc->recv_io.credits.target) @@ -1127,7 +1126,7 @@ wait_send_queue: packet = smbdirect_send_io_payload(request); packet->credits_requested = cpu_to_le16(sp->send_credit_target); - new_credits = manage_credits_prior_sending(info); + new_credits = manage_credits_prior_sending(sc); atomic_add(new_credits, &sc->recv_io.credits.count); packet->credits_granted = cpu_to_le16(new_credits); |
