diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2019-08-30 20:09:24 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-05-25 14:12:37 +0300 |
commit | d85dc2e116fdce776280224ed2bee4c78e5e5af2 (patch) | |
tree | dfe4dd39f76dcc1f89f9d61f1f89010394f3bd48 /include/linux/fs.h | |
parent | bbcd1f4d52587d4f6a90692d896cf06a37b6554a (diff) | |
download | linux-d85dc2e116fdce776280224ed2bee4c78e5e5af2.tar.xz |
fs: export generic_file_buffered_read()
Export generic_file_buffered_read() to be used to supplement incomplete
direct reads.
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 45cc10cdf6dd..366c533d30cd 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -3124,6 +3124,8 @@ extern int generic_file_rw_checks(struct file *file_in, struct file *file_out); extern int generic_copy_file_checks(struct file *file_in, loff_t pos_in, struct file *file_out, loff_t pos_out, size_t *count, unsigned int flags); +extern ssize_t generic_file_buffered_read(struct kiocb *iocb, + struct iov_iter *to, ssize_t already_read); extern ssize_t generic_file_read_iter(struct kiocb *, struct iov_iter *); extern ssize_t __generic_file_write_iter(struct kiocb *, struct iov_iter *); extern ssize_t generic_file_write_iter(struct kiocb *, struct iov_iter *); |