diff options
author | Christoph Hellwig <hch@lst.de> | 2017-05-27 11:16:51 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-30 00:49:23 +0300 |
commit | 18e9710ee59ce3bd2a2512ddcd3f7ceebe8b8d17 (patch) | |
tree | a09b5ebcb9460ad374b798258b8f46dd370cad88 /drivers/target | |
parent | edab5fe38c2c17a7d7ea5f82e1d9503bfc79a8ac (diff) | |
download | linux-18e9710ee59ce3bd2a2512ddcd3f7ceebe8b8d17.tar.xz |
fs: implement vfs_iter_read using do_iter_read
De-dupliate some code and allow for passing the flags argument to
vfs_iter_read. Additional it properly updates atime now.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_file.c b/drivers/target/target_core_file.c index 73b8f93a5fef..2befc0d7fdb1 100644 --- a/drivers/target/target_core_file.c +++ b/drivers/target/target_core_file.c @@ -275,7 +275,7 @@ static int fd_do_rw(struct se_cmd *cmd, struct file *fd, if (is_write) ret = vfs_iter_write(fd, &iter, &pos); else - ret = vfs_iter_read(fd, &iter, &pos); + ret = vfs_iter_read(fd, &iter, &pos, 0); if (is_write) { if (ret < 0 || ret != data_length) { |