projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85492cb
)
rate: remove redundant code in rate_ddir()
author
Jens Axboe
<axboe@fb.com>
Thu, 12 Mar 2015 16:05:25 +0000
(10:05 -0600)
committer
Jens Axboe
<axboe@fb.com>
Thu, 12 Mar 2015 16:05:25 +0000
(10:05 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
io_u.c
patch
|
blob
|
blame
|
history
diff --git
a/io_u.c
b/io_u.c
index f61fee8cb32240d2d85929eb0d131b009ec0d47d..6567e10a5be2c65c00d73f7415952b3e7d0f6065 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-590,9
+590,6
@@
static enum fio_ddir rate_ddir(struct thread_data *td, enum fio_ddir ddir)
if (td_rw(td) && __should_check_rate(td, odir))
td->rate_pending_usleep[odir] -= usec;
- if (ddir == DDIR_TRIM)
- return DDIR_TRIM;
-
return ddir;
}