diff options
author | Long Li <longli@microsoft.com> | 2018-05-30 12:47:55 -0700 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2018-06-02 18:36:26 -0500 |
commit | 1dbe3466b4d26078d907c64e2b68faed5dc58854 (patch) | |
tree | 71e7b518df1a3b243e4130aa66ccb53f22590466 /fs/cifs/smb2pdu.c | |
parent | f9f5aca115fd4a4b49cdc483084a0dc4ca316b25 (diff) | |
download | lwn-1dbe3466b4d26078d907c64e2b68faed5dc58854.tar.gz lwn-1dbe3466b4d26078d907c64e2b68faed5dc58854.zip |
CIFS: Use offset when reading pages
With offset defined in rdata, transport functions need to look at this
offset when reading data into the correct places in pages.
Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r-- | fs/cifs/smb2pdu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 0ae3ff24ada8..281fbc1dc720 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -2781,6 +2781,7 @@ smb2_readv_callback(struct mid_q_entry *mid) struct smb_rqst rqst = { .rq_iov = rdata->iov, .rq_nvec = 2, .rq_pages = rdata->pages, + .rq_offset = rdata->page_offset, .rq_npages = rdata->nr_pages, .rq_pagesz = rdata->pagesz, .rq_tailsz = rdata->tailsz }; |