summaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-01-25 21:11:59 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2015-01-29 00:13:13 -0500
commitdbe4e192a234cd6133d86fffb965d0f032c12ccc (patch)
treee5b5bbc9b22a289ec33fbc808f7e81d926caec06 /include/linux/fs.h
parent05afcb77eb4713f46e7ebaa3cb54bc465c5d516e (diff)
downloadop-kernel-dev-dbe4e192a234cd6133d86fffb965d0f032c12ccc.zip
op-kernel-dev-dbe4e192a234cd6133d86fffb965d0f032c12ccc.tar.gz
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/linux/fs.h')
-rw-r--r--include/linux/fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 42efe13..1f3c439 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);
OpenPOWER on IntegriCloud