summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2025-08-22 10:21:16 +0200
committerSteve French <stfrench@microsoft.com>2025-09-28 18:29:50 -0500
commit8cead970e37c40727d9b93ce49e7c445c2caf7d0 (patch)
tree0e3d8579a4d4513581f03a927c4b84f36ffb74b0
parent8a9919b2bf8199206e5c5e223e2dd3d04b93a4e2 (diff)
downloadlinux-8cead970e37c40727d9b93ce49e7c445c2caf7d0.tar.gz
linux-8cead970e37c40727d9b93ce49e7c445c2caf7d0.zip
smb: client: pass struct smbdirect_socket to manage_keep_alive_before_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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/smb/client/smbdirect.c b/fs/smb/client/smbdirect.c
index dc3b2f0aab06..7990c0409193 100644
--- a/fs/smb/client/smbdirect.c
+++ b/fs/smb/client/smbdirect.c
@@ -984,9 +984,8 @@ static int manage_credits_prior_sending(struct smbdirect_socket *sc)
* 1 if SMBDIRECT_FLAG_RESPONSE_REQUESTED needs to be set
* 0: otherwise
*/
-static int manage_keep_alive_before_sending(struct smbd_connection *info)
+static int manage_keep_alive_before_sending(struct smbdirect_socket *sc)
{
- struct smbdirect_socket *sc = &info->socket;
struct smbdirect_socket_parameters *sp = &sc->parameters;
if (sc->idle.keepalive == SMBDIRECT_KEEPALIVE_PENDING) {
@@ -1130,7 +1129,7 @@ wait_send_queue:
packet->credits_granted = cpu_to_le16(new_credits);
packet->flags = 0;
- if (manage_keep_alive_before_sending(info))
+ if (manage_keep_alive_before_sending(sc))
packet->flags |= cpu_to_le16(SMBDIRECT_FLAG_RESPONSE_REQUESTED);
packet->reserved = 0;