ipo_bytes_align() does nothing when replay_align is set, when replay_align is 0 it incorrectly masks all replay offsets to 0. The test is inverted. diff --git a/iolog.h b/iolog.h index 60ee3e9..37f27bc 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); -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html