diff options
author | Long Li <longli@microsoft.com> | 2018-05-30 12:47:54 -0700 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2018-06-02 18:36:26 -0500 |
commit | f9f5aca115fd4a4b49cdc483084a0dc4ca316b25 (patch) | |
tree | d4d7969a9c3b7f92644c316fa6dd683d905dbe5a /fs/cifs/cifsglob.h | |
parent | 8ce79ec359ad9f9d94aabf16c1ea5b8f28481c0f (diff) |
CIFS: Add support for direct pages in rdata
Add a function to allocate rdata without allocating pages for data
transfer. This gives the caller an option to pass a number of pages
that point to the data buffer.
rdata is still reponsible for free those pages after it's done.
Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 5105ac5f90f5..781c2af609e5 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -1185,7 +1185,7 @@ struct cifs_readdata { unsigned int tailsz; unsigned int credits; unsigned int nr_pages; - struct page *pages[]; + struct page **pages; }; struct cifs_writedata; |