[PATCH 1/2] falloc: fix return value from queue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix mistypo which causes internal assertation failure, this engine
will always return FIO_Q_COMPLETED

Signed-off-by: Dmitry Monakhov <dmonakhov@xxxxxxxxxx>
---
 engines/falloc.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/engines/falloc.c b/engines/falloc.c
index cbb30cb..4977d9e 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;
-- 
1.7.7.6

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux