diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2021-11-03 08:08:44 +0900 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-11-11 19:22:58 -0600 |
commit | cb4517201b8acdb5fd5314494aaf86c267f22345 (patch) | |
tree | ae6b4de2868277fe8b40186861d9e1bbc467c6f4 /fs/ksmbd/ksmbd_work.h | |
parent | 561a1cf57535154f094f31167a9170197caae686 (diff) | |
download | lwn-cb4517201b8acdb5fd5314494aaf86c267f22345.tar.gz lwn-cb4517201b8acdb5fd5314494aaf86c267f22345.zip |
ksmbd: remove smb2_buf_length in smb2_hdr
To move smb2_hdr to smbfs_common, This patch remove smb2_buf_length
variable in smb2_hdr. Also, declare smb2_get_msg function to get smb2
request/response from ->request/response_buf.
Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ksmbd/ksmbd_work.h')
-rw-r--r-- | fs/ksmbd/ksmbd_work.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ksmbd/ksmbd_work.h b/fs/ksmbd/ksmbd_work.h index f7156bc50049..5ece58e40c97 100644 --- a/fs/ksmbd/ksmbd_work.h +++ b/fs/ksmbd/ksmbd_work.h @@ -92,7 +92,7 @@ struct ksmbd_work { */ static inline void *ksmbd_resp_buf_next(struct ksmbd_work *work) { - return work->response_buf + work->next_smb2_rsp_hdr_off; + return work->response_buf + work->next_smb2_rsp_hdr_off + 4; } /** @@ -101,7 +101,7 @@ static inline void *ksmbd_resp_buf_next(struct ksmbd_work *work) */ static inline void *ksmbd_req_buf_next(struct ksmbd_work *work) { - return work->request_buf + work->next_smb2_rcv_hdr_off; + return work->request_buf + work->next_smb2_rcv_hdr_off + 4; } struct ksmbd_work *ksmbd_alloc_work_struct(void); |