mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 12:04:08 +00:00
export __vfs_read()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
a35fb914ae
commit
3d04c8a17f
1 changed files with 5 additions and 8 deletions
|
@ -450,19 +450,16 @@ EXPORT_SYMBOL(new_sync_read);
|
||||||
ssize_t __vfs_read(struct file *file, char __user *buf, size_t count,
|
ssize_t __vfs_read(struct file *file, char __user *buf, size_t count,
|
||||||
loff_t *pos)
|
loff_t *pos)
|
||||||
{
|
{
|
||||||
ssize_t ret;
|
|
||||||
|
|
||||||
if (file->f_op->read)
|
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)
|
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)
|
else if (file->f_op->read_iter)
|
||||||
ret = new_sync_read(file, buf, count, pos);
|
return new_sync_read(file, buf, count, pos);
|
||||||
else
|
else
|
||||||
ret = -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL(__vfs_read);
|
||||||
|
|
||||||
ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos)
|
ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue