mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
vfs: use helpers for calling f_op->{read,write}_iter()
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
0f78d06ac1
commit
bb7462b6fd
5 changed files with 23 additions and 11 deletions
4
fs/aio.c
4
fs/aio.c
|
@ -1494,7 +1494,7 @@ static ssize_t aio_read(struct kiocb *req, struct iocb *iocb, bool vectored,
|
|||
return ret;
|
||||
ret = rw_verify_area(READ, file, &req->ki_pos, iov_iter_count(&iter));
|
||||
if (!ret)
|
||||
ret = aio_ret(req, file->f_op->read_iter(req, &iter));
|
||||
ret = aio_ret(req, call_read_iter(file, req, &iter));
|
||||
kfree(iovec);
|
||||
return ret;
|
||||
}
|
||||
|
@ -1519,7 +1519,7 @@ static ssize_t aio_write(struct kiocb *req, struct iocb *iocb, bool vectored,
|
|||
if (!ret) {
|
||||
req->ki_flags |= IOCB_WRITE;
|
||||
file_start_write(file);
|
||||
ret = aio_ret(req, file->f_op->write_iter(req, &iter));
|
||||
ret = aio_ret(req, call_write_iter(file, req, &iter));
|
||||
/*
|
||||
* We release freeze protection in aio_complete(). Fool lockdep
|
||||
* by telling it the lock got released so that it doesn't
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue