From: Dylan Fairchild Date: Thu, 2 Feb 2017 18:37:00 +0000 (-0800) Subject: fix to replay_align on iolog X-Git-Tag: fio-2.18~33 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=3dd2e8aa0519225da5ccc100aa02e55306bcc2f3 fix to replay_align on iolog previous code was rejecting all positive alignment values and only accepting align to 0 value, opposite of what it should be doing --- diff --git a/iolog.h b/iolog.h index 60ee3e92..37f27bca 100644 --- a/iolog.h +++ b/iolog.h @@ -271,7 +271,7 @@ static inline bool inline_log(struct io_log *log) static inline void ipo_bytes_align(unsigned int replay_align, struct io_piece *ipo) { - if (replay_align) + if (!replay_align) return; ipo->offset &= ~(replay_align - (uint64_t)1);