projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
iolog: use a define instead of a raw bit mask
[fio.git]
/
iolog.h
diff --git
a/iolog.h
b/iolog.h
index d268fe2ee048dd22791d65b47f161b260e7a5e81..fcd6794278edd6a39e1c6fd73997370e314b120b 100644
(file)
--- a/
iolog.h
+++ b/
iolog.h
@@
-93,7
+93,11
@@
struct io_log {
struct flist_head chunk_list;
};
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,
static inline void io_sample_set_ddir(struct io_log *log,
struct io_sample *io,