Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Stefan Metzmacher and committed by
Steve French
c6b077ef 08ffdf0c

+2 -2
+2 -2
fs/smb/server/transport_rdma.c
··· 944 944 goto flush_failed; 945 945 } 946 946 947 - return 0; 947 + return data_length; 948 948 err: 949 949 smbdirect_connection_free_send_io(msg); 950 950 flush_failed: ··· 1000 1000 &send_ctx, 1001 1001 iter, 1002 1002 iov_iter_count(iter)); 1003 - if (unlikely(ret)) { 1003 + if (unlikely(ret < 0)) { 1004 1004 error = ret; 1005 1005 break; 1006 1006 }