malloc memory still needs to be aligned, if we are doing direct IO
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index 94da6b48744ca7a5bc9fccb019e082c2fb01da30..ead118ec35a0d02572a5366f4fe065a904c0cf05 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -629,8 +629,6 @@ static int init_io_u(struct thread_data *td)
 
        if (td->o.mem_type == MEM_SHMHUGE || td->o.mem_type == MEM_MMAPHUGE)
                td->orig_buffer_size = (td->orig_buffer_size + td->o.hugepage_size - 1) & ~(td->o.hugepage_size - 1);
-       else if (td->orig_buffer_size & page_mask)
-               td->orig_buffer_size = (td->orig_buffer_size + page_mask) & ~page_mask;
 
        if (td->orig_buffer_size != (size_t) td->orig_buffer_size) {
                log_err("fio: IO memory too large. Reduce max_bs or iodepth\n");