From: Dmitry Monakhov Date: Thu, 20 Sep 2012 11:37:16 +0000 (+0400) Subject: falloc: fix return value from queue X-Git-Tag: fio-2.0.10~26 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=cb3eb86ee2f2f9c69fb7549b7443c40469e44701;ds=sidebyside falloc: fix return value from queue Fix mistypo which causes internal assertation failure, this engine will always return FIO_Q_COMPLETED Signed-off-by: Dmitry Monakhov Signed-off-by: Jens Axboe --- diff --git a/engines/falloc.c b/engines/falloc.c index cbb30cbf..4977d9e2 100644 --- a/engines/falloc.c +++ b/engines/falloc.c @@ -91,8 +91,6 @@ static int fio_fallocate_queue(struct thread_data *td, struct io_u *io_u) 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;