X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=iolog.h;h=fcd6794278edd6a39e1c6fd73997370e314b120b;hp=d268fe2ee048dd22791d65b47f161b260e7a5e81;hb=49e98daa3e1d46c13b570ab3676a22ac849fc4c0;hpb=c07826cd520cc93ef1d7eaee02c02094b3db3883 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,