diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-03 19:09:18 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-12 02:29:38 (GMT) |
commit | 3d04c8a17f1a0041a6851cf64f3da8c40deed837 (patch) | |
tree | 611e8dc9c553d01cfe7748b7c75f174096d80930 /fs | |
parent | a35fb914ae62a58ca7519778fffac722c6ae255f (diff) | |
download | linux-3d04c8a17f1a0041a6851cf64f3da8c40deed837.tar.xz |
export __vfs_read()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/read_write.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/fs/read_write.c b/fs/read_write.c index 9d7952a..c75e6ef 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -450,19 +450,16 @@ EXPORT_SYMBOL(new_sync_read); ssize_t __vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos) { - ssize_t ret; - if (file->f_op->read) - ret = file->f_op->read(file, buf, count, pos); + return file->f_op->read(file, buf, count, pos); else if (file->f_op->aio_read) - ret = do_sync_read(file, buf, count, pos); + return do_sync_read(file, buf, count, pos); else if (file->f_op->read_iter) - ret = new_sync_read(file, buf, count, pos); + return new_sync_read(file, buf, count, pos); else - ret = -EINVAL; - - return ret; + return -EINVAL; } +EXPORT_SYMBOL(__vfs_read); ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos) { |