CIFS: Add support for direct pages in wdata
authorLong Li <[email protected]>
Wed, 30 May 2018 19:47:56 +0000 (12:47 -0700)
committerSteve French <[email protected]>
Sat, 2 Jun 2018 23:36:26 +0000 (18:36 -0500)
commit8e7360f67e75e06f3ea144354243728fb8f54c57
treea17499125a7b605275034d9dbbdf76911c1b5a0d
parent1dbe3466b4d26078d907c64e2b68faed5dc58854
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 <[email protected]>
Signed-off-by: Steve French <[email protected]>
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c