Re: [PATCH v3 09/22] smb: move copychunk definitions to common/smb2pdu.h

From: ChenXiaoSong

Date: Wed Oct 22 2025 - 01:48:24 EST


Hi Namjae,

In this patch, COPY_CHUNK_RES_KEY_SIZE has already been moved to common/smb2pdu.h

--
Thanks,
ChenXiaoSong.

On 10/20/25 1:03 PM, Namjae Jeon wrote:
diff --git a/fs/smb/client/smb2pdu.h b/fs/smb/client/smb2pdu.h
index 0be63c00f848..9b5880e60a4e 100644
--- a/fs/smb/client/smb2pdu.h
+++ b/fs/smb/client/smb2pdu.h
@@ -191,36 +191,12 @@ struct crt_sd_ctxt {
struct smb3_sd sd;
} __packed;

-
-#define COPY_CHUNK_RES_KEY_SIZE 24
struct resume_key_req {
char ResumeKey[COPY_CHUNK_RES_KEY_SIZE];
__le32 ContextLength; /* MBZ */
char Context[]; /* ignored, Windows sets to 4 bytes of zero */
} __packed;
This can also be moved along with copychunk structures.
Thanks.