]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb: server: let smbdirect_map_sges_from_iter() truncate the message boundary
authorStefan Metzmacher <metze@samba.org>
Fri, 17 Oct 2025 15:58:16 +0000 (17:58 +0200)
committerSteve French <stfrench@microsoft.com>
Thu, 16 Apr 2026 02:58:23 +0000 (21:58 -0500)
commitda20536c508c0f511cf20ceef6757ea4861bf547
tree183e4e9ae3b45c92c546d272e339db264f2826c3
parent0af87a0a31668d4a0dc8d8140fb51da594935eb4
smb: server: let smbdirect_map_sges_from_iter() truncate the message boundary

smbdirect_map_sges_from_iter() already handles the case that only
a limited number of sges are available. Its return value
is data_length and the remaining bytes in the iter are
remaining_data_length.

This is now much easier and will allow us to share
more code with the client soon.

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>
fs/smb/server/transport_rdma.c