projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
io_u: fix bug in rounding of generated buffer length
[fio.git]
/
io_u.c
diff --git
a/io_u.c
b/io_u.c
index ba3f7ca00fcd1db4f657f5dcf7321fc8c9f7ca0e..50644850463f3e212381ff552f88ce056b5d83b9 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-485,7
+485,7
@@
static unsigned int __get_next_buflen(struct thread_data *td, struct io_u *io_u,
~(td->o.verify_interval - 1);
if (!td->o.bs_unaligned && is_power_of_2(minbs))
~(td->o.verify_interval - 1);
if (!td->o.bs_unaligned && is_power_of_2(minbs))
- buflen
= (buflen + minbs - 1) &
~(minbs - 1);
+ buflen
&=
~(minbs - 1);
} while (!io_u_fits(td, io_u, buflen));
} while (!io_u_fits(td, io_u, buflen));