projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://brick.kernel.dk/data/git/fio
[fio.git]
/
engines
/
falloc.c
diff --git
a/engines/falloc.c
b/engines/falloc.c
index cbb30cbf9ad215f17dd8704230a68638f5a7bbd1..525a0aae922d0e2d024122ba5e23ebcb24cbaf83 100644
(file)
--- a/
engines/falloc.c
+++ b/
engines/falloc.c
@@
-86,16
+86,8
@@
static int fio_fallocate_queue(struct thread_data *td, struct io_u *io_u)
ret = fallocate(f->fd, flags, io_u->offset, io_u->xfer_buflen);
ret = fallocate(f->fd, flags, io_u->offset, io_u->xfer_buflen);
- if (ret)
{
+ if (ret)
io_u->error = errno;
io_u->error = errno;
- if (io_u->error)
- td_verror(td, io_u->error, "xfer");
- }
- if (io_u->ddir == DDIR_TRIM && !ret)
- return io_u->xfer_buflen;
-
- if (io_u->file && ret == 0 && ddir_rw(io_u->ddir))
- io_u->file->file_pos = io_u->offset + ret;
return FIO_Q_COMPLETED;
}
return FIO_Q_COMPLETED;
}