diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2017-02-20 16:51:23 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2017-02-20 16:51:23 +0100 |
commit | bb7462b6fd64e40809a857223bf7f0e628969f87 (patch) | |
tree | aa3ac0570ca67c85f0c7a3658c970716135ac1c0 /include/linux/fs.h | |
parent | 0f78d06ac1e9b470cbd8f913ee1688c8b2c8feb3 (diff) |
vfs: use helpers for calling f_op->{read,write}_iter()
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 78c81e6f5d76..a3145cdff8f2 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1715,6 +1715,18 @@ struct inode_operations { int (*set_acl)(struct inode *, struct posix_acl *, int); } ____cacheline_aligned; +static inline ssize_t call_read_iter(struct file *file, struct kiocb *kio, + struct iov_iter *iter) +{ + return file->f_op->read_iter(kio, iter); +} + +static inline ssize_t call_write_iter(struct file *file, struct kiocb *kio, + struct iov_iter *iter) +{ + return file->f_op->write_iter(kio, iter); +} + ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, unsigned long nr_segs, unsigned long fast_segs, struct iovec *fast_pointer, |