Skip to content

Commit c6b077e

Browse files
metze-sambasmfrench
authored andcommitted
smb: server: let smb_direct_post_send_data() return data_length
This make it easier moving to common code shared with the client. Cc: Namjae Jeon <linkinjeon@kernel.org> Cc: Steve French <smfrench@gmail.com> Cc: Tom Talpey <tom@talpey.com> Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Signed-off-by: Stefan Metzmacher <metze@samba.org> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 08ffdf0 commit c6b077e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/smb/server/transport_rdma.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ static int smb_direct_post_send_data(struct smbdirect_socket *sc,
944944
goto flush_failed;
945945
}
946946

947-
return 0;
947+
return data_length;
948948
err:
949949
smbdirect_connection_free_send_io(msg);
950950
flush_failed:
@@ -1000,7 +1000,7 @@ static int smb_direct_send_iter(struct smbdirect_socket *sc,
10001000
&send_ctx,
10011001
iter,
10021002
iov_iter_count(iter));
1003-
if (unlikely(ret)) {
1003+
if (unlikely(ret < 0)) {
10041004
error = ret;
10051005
break;
10061006
}

0 commit comments

Comments
 (0)