commit | ca7e0ddb08fece35c95e9056ca877e0806f1e6ef | [log] [tgz] |
---|---|---|
author | Jens Axboe <jaxboe@fusionio.com> | Thu Oct 28 08:52:13 2010 -0600 |
committer | Jens Axboe <jaxboe@fusionio.com> | Thu Oct 28 08:52:13 2010 -0600 |
tree | c02dea9d9e9a37e244961a7630f4d6c2de5ed90c | |
parent | f0f346d8604d594506c0dc1a3310a27de127c2ed [diff] [blame] |
binject: ensure we get aligned memory Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
diff --git a/memory.c b/memory.c index 7f4cef5..b94cd6d 100644 --- a/memory.c +++ b/memory.c
@@ -193,7 +193,8 @@ total_mem = td->orig_buffer_size; - if (td->o.odirect || td->o.mem_align) { + if (td->o.odirect || td->o.mem_align || + (td->io_ops->flags & FIO_MEMALIGN)) { total_mem += page_mask; if (td->o.mem_align && td->o.mem_align > page_size) total_mem += td->o.mem_align - page_size;