X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=io_u.c;h=50644850463f3e212381ff552f88ce056b5d83b9;hp=ba3f7ca00fcd1db4f657f5dcf7321fc8c9f7ca0e;hb=7c306bb1d27de928cba1b58d7888981d44416fd1;hpb=a6eaf6c9101cd3f2895376944e6425a43613dbf6 diff --git a/io_u.c b/io_u.c index ba3f7ca0..50644850 100644 --- 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)) - buflen = (buflen + minbs - 1) & ~(minbs - 1); + buflen &= ~(minbs - 1); } while (!io_u_fits(td, io_u, buflen));