fix to replay_align on iolog
authorDylan Fairchild <Dylan.Fairchild@wdc.com>
Thu, 2 Feb 2017 18:37:00 +0000 (10:37 -0800)
committerDylan Fairchild <Dylan.Fairchild@wdc.com>
Thu, 2 Feb 2017 18:37:00 +0000 (10:37 -0800)
previous code was rejecting all positive alignment values and
only accepting align to 0 value, opposite of what it should be doing

iolog.h

diff --git a/iolog.h b/iolog.h
index 60ee3e9..37f27bc 100644 (file)
--- 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);