mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 03:50:24 +09:00
ksmbd: remove duplicate flag set in smb2_write
[ Upstream commit 745bbc0995 ]
The writethrough flag is set again if is_rdma_channel is false.
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d4b374ff2a
commit
8d0f823193
@@ -6564,6 +6564,7 @@ int smb2_write(struct ksmbd_work *work)
|
||||
goto out;
|
||||
}
|
||||
|
||||
ksmbd_debug(SMB, "flags %u\n", le32_to_cpu(req->Flags));
|
||||
if (le32_to_cpu(req->Flags) & SMB2_WRITEFLAG_WRITE_THROUGH)
|
||||
writethrough = true;
|
||||
|
||||
@@ -6577,10 +6578,6 @@ int smb2_write(struct ksmbd_work *work)
|
||||
data_buf = (char *)(((char *)&req->hdr.ProtocolId) +
|
||||
le16_to_cpu(req->DataOffset));
|
||||
|
||||
ksmbd_debug(SMB, "flags %u\n", le32_to_cpu(req->Flags));
|
||||
if (le32_to_cpu(req->Flags) & SMB2_WRITEFLAG_WRITE_THROUGH)
|
||||
writethrough = true;
|
||||
|
||||
ksmbd_debug(SMB, "filename %pd, offset %lld, len %zu\n",
|
||||
fp->filp->f_path.dentry, offset, length);
|
||||
err = ksmbd_vfs_write(work, fp, data_buf, length, &offset,
|
||||
|
||||
Reference in New Issue
Block a user