X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=iolog.h;h=fcd6794278edd6a39e1c6fd73997370e314b120b;hb=a5f29b4aaa7fc75a36e10928f723186a3ef4368c;hp=d268fe2ee048dd22791d65b47f161b260e7a5e81;hpb=b26317c97b8bcca7cc9144ea6e1d4ed753f2311a;p=fio.git diff --git a/iolog.h b/iolog.h index d268fe2e..fcd67942 100644 --- a/iolog.h +++ b/iolog.h @@ -93,7 +93,11 @@ struct io_log { struct flist_head chunk_list; }; -#define io_sample_ddir(io) ((io)->__ddir & ~0x80000000U) +/* + * If the upper bit is set, then we have the offset as well + */ +#define LOG_OFFSET_SAMPLE_BIT 0x80000000U +#define io_sample_ddir(io) ((io)->__ddir & ~LOG_OFFSET_SAMPLE_BIT) static inline void io_sample_set_ddir(struct io_log *log, struct io_sample *io,