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 /drivers/block/loop.c | |
parent | 0f78d06ac1e9b470cbd8f913ee1688c8b2c8feb3 (diff) | |
download | talos-op-linux-bb7462b6fd64e40809a857223bf7f0e628969f87.tar.gz talos-op-linux-bb7462b6fd64e40809a857223bf7f0e628969f87.zip |
vfs: use helpers for calling f_op->{read,write}_iter()
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'drivers/block/loop.c')
-rw-r--r-- | drivers/block/loop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index f347285c67ec..2cf2903a0715 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -501,9 +501,9 @@ static int lo_rw_aio(struct loop_device *lo, struct loop_cmd *cmd, cmd->iocb.ki_flags = IOCB_DIRECT; if (rw == WRITE) - ret = file->f_op->write_iter(&cmd->iocb, &iter); + ret = call_write_iter(file, &cmd->iocb, &iter); else - ret = file->f_op->read_iter(&cmd->iocb, &iter); + ret = call_read_iter(file, &cmd->iocb, &iter); if (ret != -EIOCBQUEUED) cmd->iocb.ki_complete(&cmd->iocb, ret, 0); |