diff options
author | Christoph Hellwig <hch@lst.de> | 2015-01-25 21:11:59 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-01-29 00:13:13 -0500 |
commit | dbe4e192a234cd6133d86fffb965d0f032c12ccc (patch) | |
tree | e5b5bbc9b22a289ec33fbc808f7e81d926caec06 /include | |
parent | 05afcb77eb4713f46e7ebaa3cb54bc465c5d516e (diff) | |
download | linux-stable-dbe4e192a234cd6133d86fffb965d0f032c12ccc.tar.gz linux-stable-dbe4e192a234cd6133d86fffb965d0f032c12ccc.tar.bz2 linux-stable-dbe4e192a234cd6133d86fffb965d0f032c12ccc.zip |
fs: add vfs_iter_{read,write} helpers
Simple helpers that pass an arbitrary iov_iter to filesystems.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 42efe13077b6..1f3c43952540 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2494,6 +2494,9 @@ extern ssize_t do_sync_write(struct file *filp, const char __user *buf, size_t l extern ssize_t new_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos); extern ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos); +ssize_t vfs_iter_read(struct file *file, struct iov_iter *iter, loff_t *ppos); +ssize_t vfs_iter_write(struct file *file, struct iov_iter *iter, loff_t *ppos); + /* fs/block_dev.c */ extern ssize_t blkdev_read_iter(struct kiocb *iocb, struct iov_iter *to); extern ssize_t blkdev_write_iter(struct kiocb *iocb, struct iov_iter *from); |