diff options
author | Long Li | 2018-05-30 21:47:53 +0200 |
---|---|---|
committer | Steve French | 2018-05-30 23:06:12 +0200 |
commit | 57a929a66f5a7c9363b1caa63db2bd9a3ffa6e49 (patch) | |
tree | 163f8fe332d7a52369cc2ff0e73a3c24f81a5e34 /fs/cifs/smb2pdu.c | |
parent | smb3: Add ftrace tracepoints for improved SMB3 debugging (diff) | |
download | kernel-qcow2-linux-57a929a66f5a7c9363b1caa63db2bd9a3ffa6e49.tar.gz kernel-qcow2-linux-57a929a66f5a7c9363b1caa63db2bd9a3ffa6e49.tar.xz kernel-qcow2-linux-57a929a66f5a7c9363b1caa63db2bd9a3ffa6e49.zip |
CIFS: Introduce offset for the 1st page in data transfer structures
When direct I/O is used, the data buffer may not always align to page
boundaries. Introduce a page offset in transport data structures to
describe the location of the buffer within the page.
Also change the function to pass the page offset when sending data to
transport.
Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.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 47d53314fc7f..a02f6b674d0f 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -3045,6 +3045,7 @@ smb2_async_writev(struct cifs_writedata *wdata, rqst.rq_iov = iov; rqst.rq_nvec = 2; rqst.rq_pages = wdata->pages; + rqst.rq_offset = wdata->page_offset; rqst.rq_npages = wdata->nr_pages; rqst.rq_pagesz = wdata->pagesz; rqst.rq_tailsz = wdata->tailsz; |