CIFS: Add support for direct pages in rdata
authorLong Li <longli@microsoft.com>
Wed, 30 May 2018 19:47:54 +0000 (12:47 -0700)
committerSteve French <smfrench@gmail.com>
Sat, 2 Jun 2018 23:36:26 +0000 (18:36 -0500)
commitf9f5aca115fd4a4b49cdc483084a0dc4ca316b25
treed4d7969a9c3b7f92644c316fa6dd683d905dbe5a
parent8ce79ec359ad9f9d94aabf16c1ea5b8f28481c0f
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>
fs/cifs/cifsglob.h
fs/cifs/file.c