diff options
author | Christoph Hellwig <hch@lst.de> | 2017-05-27 11:16:51 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-29 17:49:23 -0400 |
commit | 18e9710ee59ce3bd2a2512ddcd3f7ceebe8b8d17 (patch) | |
tree | a09b5ebcb9460ad374b798258b8f46dd370cad88 /include/linux/fs.h | |
parent | edab5fe38c2c17a7d7ea5f82e1d9503bfc79a8ac (diff) | |
download | op-kernel-dev-18e9710ee59ce3bd2a2512ddcd3f7ceebe8b8d17.zip op-kernel-dev-18e9710ee59ce3bd2a2512ddcd3f7ceebe8b8d17.tar.gz |
fs: implement vfs_iter_read using do_iter_read
De-dupliate some code and allow for passing the flags argument to
vfs_iter_read. Additional it properly updates atime now.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 803e5a9..3f6a4f4 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2789,7 +2789,8 @@ extern ssize_t generic_file_write_iter(struct kiocb *, struct iov_iter *); extern ssize_t generic_file_direct_write(struct kiocb *, struct iov_iter *); extern ssize_t generic_perform_write(struct file *, struct iov_iter *, loff_t); -ssize_t vfs_iter_read(struct file *file, struct iov_iter *iter, loff_t *ppos); +ssize_t vfs_iter_read(struct file *file, struct iov_iter *iter, loff_t *ppos, + int flags); ssize_t vfs_iter_write(struct file *file, struct iov_iter *iter, loff_t *ppos); /* fs/block_dev.c */ |