cifs: fix protocol definition for READ_RSP
authorJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:29:59 +0000 (15:29 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:29:59 +0000 (15:29 -0400)
There is no pad, and it simplifies the code to remove the "Data" field.

None of the existing code relies on these fields, or on the READ_RSP
being a particular length.

Reviewed-and-Tested-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/cifspdu.h

index de3aa285de039fba237ef07d59d8ad6be2e775dc..3c6ef34fe2bc51bd5a7bca67900a52a5b795ac91 100644 (file)
@@ -1089,9 +1089,7 @@ typedef struct smb_com_read_rsp {
        __le16 DataLengthHigh;
        __u64 Reserved2;
        __u16 ByteCount;
-       __u8 Pad;               /* BB check for whether padded to DWORD
-                                  boundary and optimum performance here */
-       char Data[1];
+       /* read response data immediately follows */
 } __attribute__((packed)) READ_RSP;
 
 typedef struct locking_andx_range {