]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ksmbd: copy overlapped range within the same file
authorNamjae Jeon <linkinjeon@kernel.org>
Thu, 25 Sep 2025 12:15:20 +0000 (21:15 +0900)
committerSteve French <stfrench@microsoft.com>
Wed, 1 Oct 2025 02:37:54 +0000 (21:37 -0500)
commitc20988c21751ef67df4191e262675e231610e9ab
tree45251f2e4f5194343ba1207191e99b169611e94a
parent3677ca67b9791481af16d86e47c3c7d1f2442f95
ksmbd: copy overlapped range within the same file

cifs.ko request to copy overlapped range within the same file.
ksmbd is using vfs_copy_file_range for this, vfs_copy_file_range() does not
allow overlapped copying within the same file.
This patch use do_splice_direct() if offset and length are overlapped.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/vfs.c