diff options
author | Long Li <longli@microsoft.com> | 2018-05-30 12:47:56 -0700 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2018-06-02 18:36:26 -0500 |
commit | 8e7360f67e75e06f3ea144354243728fb8f54c57 (patch) | |
tree | a17499125a7b605275034d9dbbdf76911c1b5a0d /fs/cifs/cifsglob.h | |
parent | 1dbe3466b4d26078d907c64e2b68faed5dc58854 (diff) | |
download | blackbird-op-linux-8e7360f67e75e06f3ea144354243728fb8f54c57.tar.gz blackbird-op-linux-8e7360f67e75e06f3ea144354243728fb8f54c57.zip |
CIFS: Add support for direct pages in wdata
Add a function to allocate wdata without allocating pages for data
transfer. This gives the caller an option to pass a number of pages that
point to the data buffer to write to.
wdata is 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 781c2af609e5..08d1cdd96701 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -1211,7 +1211,7 @@ struct cifs_writedata { unsigned int tailsz; unsigned int credits; unsigned int nr_pages; - struct page *pages[]; + struct page **pages; }; /* |