Skip to content

Commit 745bbc0

Browse files
hcleesmfrench
authored andcommitted
ksmbd: remove duplicate flag set in smb2_write
The writethrough flag is set again if is_rdma_channel is false. Signed-off-by: Hyunchul Lee <[email protected]> Acked-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 06ee1c0 commit 745bbc0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

fs/ksmbd/smb2pdu.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6490,6 +6490,7 @@ int smb2_write(struct ksmbd_work *work)
64906490
goto out;
64916491
}
64926492

6493+
ksmbd_debug(SMB, "flags %u\n", le32_to_cpu(req->Flags));
64936494
if (le32_to_cpu(req->Flags) & SMB2_WRITEFLAG_WRITE_THROUGH)
64946495
writethrough = true;
64956496

@@ -6505,10 +6506,6 @@ int smb2_write(struct ksmbd_work *work)
65056506
data_buf = (char *)(((char *)&req->hdr.ProtocolId) +
65066507
le16_to_cpu(req->DataOffset));
65076508

6508-
ksmbd_debug(SMB, "flags %u\n", le32_to_cpu(req->Flags));
6509-
if (le32_to_cpu(req->Flags) & SMB2_WRITEFLAG_WRITE_THROUGH)
6510-
writethrough = true;
6511-
65126509
ksmbd_debug(SMB, "filename %pd, offset %lld, len %zu\n",
65136510
fp->filp->f_path.dentry, offset, length);
65146511
err = ksmbd_vfs_write(work, fp, data_buf, length, &offset,

0 commit comments

Comments
 (0)