diff options
author | Long Li <longli@microsoft.com> | 2018-10-31 22:13:10 +0000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-11-02 14:09:42 -0500 |
commit | 8c5f9c1ab7cb45f6584ce312b14fb310a8fa28f3 (patch) | |
tree | 04d1492038748e64e95f13c295aaf0f338f6af3e /fs/cifs/cifsfs.h | |
parent | 6e6e2b86c29c6fcfa16ad9fdc7ea32027bea5d73 (diff) | |
download | linux-stable-8c5f9c1ab7cb45f6584ce312b14fb310a8fa28f3.tar.gz linux-stable-8c5f9c1ab7cb45f6584ce312b14fb310a8fa28f3.tar.bz2 linux-stable-8c5f9c1ab7cb45f6584ce312b14fb310a8fa28f3.zip |
CIFS: Add support for direct I/O write
With direct I/O write, user supplied buffers are pinned to the memory and data
are transferred directly from user buffers to the transport layer.
Change in v3: add support for kernel AIO
Change in v4:
Refactor common write code to __cifs_writev for direct and non-direct I/O.
Retry on direct I/O failure.
Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsfs.h')
-rw-r--r-- | fs/cifs/cifsfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.h b/fs/cifs/cifsfs.h index 3abea1a3f20c..4c3b5cfccc49 100644 --- a/fs/cifs/cifsfs.h +++ b/fs/cifs/cifsfs.h @@ -104,6 +104,7 @@ extern ssize_t cifs_user_readv(struct kiocb *iocb, struct iov_iter *to); extern ssize_t cifs_direct_readv(struct kiocb *iocb, struct iov_iter *to); extern ssize_t cifs_strict_readv(struct kiocb *iocb, struct iov_iter *to); extern ssize_t cifs_user_writev(struct kiocb *iocb, struct iov_iter *from); +extern ssize_t cifs_direct_writev(struct kiocb *iocb, struct iov_iter *from); extern ssize_t cifs_strict_writev(struct kiocb *iocb, struct iov_iter *from); extern int cifs_lock(struct file *, int, struct file_lock *); extern int cifs_fsync(struct file *, loff_t, loff_t, int); |